mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
add tes
This commit is contained in:
parent
bcd8d104fb
commit
e9e01b54bf
@ -41,4 +41,16 @@ public class RandomUtilTest {
|
||||
final char c = RandomUtil.randomNumber();
|
||||
Assert.assertTrue(c <= '9');
|
||||
}
|
||||
|
||||
@Test
|
||||
public void randomIntTest() {
|
||||
final int c = RandomUtil.randomInt(10, 100);
|
||||
Assert.assertTrue(c >= 10 && c < 100);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void randomBytesTest() {
|
||||
final byte[] c = RandomUtil.randomBytes(10);
|
||||
Assert.assertNotNull(c);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user