assertEquals(4, query.list().size());
assertEquals(4, query.count());
}
public void testQueryByInvalidResourceType() {
FilterQuery query = filterService.createFilterQuery().filterResourceType("invalid");
assertNull(query.singleResult());
assertEquals(0, query.list().size());
assertEquals(0, query.count());
try {
filterService.createFilterQuery().filterResourceType(null);
fail("Exception expected");
}