mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix test
This commit is contained in:
parent
d9cd597256
commit
0797ceb12d
@ -44,7 +44,7 @@ public class SerializeUtil {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
final FastByteArrayOutputStream byteOut = new FastByteArrayOutputStream();
|
final FastByteArrayOutputStream byteOut = new FastByteArrayOutputStream();
|
||||||
IoUtil.writeObjects(byteOut, false, (Serializable) obj);
|
IoUtil.writeObjects(byteOut, false, obj);
|
||||||
return byteOut.toByteArray();
|
return byteOut.toByteArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,6 +99,13 @@ public class CRUDTest {
|
|||||||
Assert.assertEquals(2, results.size());
|
Assert.assertEquals(2, results.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void findInTest4() {
|
||||||
|
final List<Entity> results = db.findAll(Entity.of("user")
|
||||||
|
.set("id", new String[]{"1", "2", "3"}));
|
||||||
|
Assert.assertEquals(2, results.size());
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void findAllTest() {
|
public void findAllTest() {
|
||||||
final List<Entity> results = db.findAll("user");
|
final List<Entity> results = db.findAll("user");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user