提交 180f3a73 编写于 作者: A Andy

Add unit test cases

上级 1f125c4a
......@@ -40,4 +40,16 @@ public class UtilsAndCommonsTest {
Assert.assertEquals("/nacos/v1/ns", DEFAULT_NACOS_NAMING_CONTEXT);
}
@Test(expected = IllegalArgumentException.class)
public void testShakeUpException() {
UtilsAndCommons.shakeUp(null, 0);
}
@Test
public void testShakeUp() {
Assert.assertEquals(0, UtilsAndCommons.shakeUp(null, 1));
char[] chars = new char[]{2325, 9, 30, 12, 2};
Assert.assertEquals(0, UtilsAndCommons.shakeUp(new String(chars), 1));
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册