mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
修复RandomUtil.randomStringWithoutStr方法问题
This commit is contained in:
@@ -76,11 +76,9 @@ public class RandomUtilTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Disabled
|
||||
public void randomStringWithoutStrTest() {
|
||||
public void randomStringLowerWithoutStrTest() {
|
||||
for (int i = 0; i < 100; i++) {
|
||||
final String s = RandomUtil.randomStringWithoutStr(8, "0IPOL");
|
||||
System.out.println(s);
|
||||
final String s = RandomUtil.randomStringLowerWithoutStr(8, "0IPOL");
|
||||
for (final char c : "0IPOL".toCharArray()) {
|
||||
Assertions.assertFalse(s.contains((String.valueOf(c).toLowerCase(Locale.ROOT))));
|
||||
}
|
||||
|
Reference in New Issue
Block a user