This commit is contained in:
Looly
2022-08-06 18:45:01 +08:00
parent 18dd6da22b
commit aa403cbe98
4 changed files with 32 additions and 3 deletions

View File

@@ -75,6 +75,12 @@ public class RandomUtilTest {
}
}
@Test
public void randomStringOfLengthTest(){
final String s = RandomUtil.randomString("123", -1);
Assert.assertNotNull(s);
}
@Test
public void generateRandomNumberTest(){
final int[] ints = RandomUtil.randomPickInts(5, NumberUtil.range(5, 20));