This commit is contained in:
Looly
2023-04-12 01:18:11 +08:00
parent bc601ca0ad
commit d2e5155ac5
205 changed files with 500 additions and 492 deletions

View File

@@ -721,7 +721,7 @@ public class BeanUtilTest {
new LinkedHashMap<>(),
false,
entry -> {
if(false == Arrays.asList("id", "name", "code", "sortOrder").contains(entry.getKey())){
if(! Arrays.asList("id", "name", "code", "sortOrder").contains(entry.getKey())){
entry.setKey(null);
}
return entry;

View File

@@ -107,7 +107,7 @@ public class IterUtilTest {
final List<String> obj2 = ListUtil.of("3");
final List<String> obj = ListUtil.of("1", "3");
IterUtil.remove(obj.iterator(), (e)-> false == obj2.contains(e));
IterUtil.remove(obj.iterator(), (e)-> ! obj2.contains(e));
Assertions.assertEquals(1, obj.size());
Assertions.assertEquals("3", obj.get(0));

View File

@@ -61,7 +61,7 @@ public class SnowflakeTest {
final Set<Long> ids = new ConcurrentHashSet<>();
ThreadUtil.concurrencyTest(100, () -> {
for (int i = 0; i < 50000; i++) {
if(false == ids.add(snowflake.nextId())){
if(! ids.add(snowflake.nextId())){
throw new UtilException("重复ID");
}
}
@@ -98,7 +98,7 @@ public class SnowflakeTest {
final Set<Long> ids = new ConcurrentHashSet<>();
ThreadUtil.concurrencyTest(100, () -> {
for (int i = 0; i < 50000; i++) {
if(false == ids.add(snowflake.nextId())){
if(! ids.add(snowflake.nextId())){
throw new UtilException("重复ID");
}
}