Assert.assertEquals(2, t);
}
@Test
public void compareFilterOnInteger() throws Exception {
Filter lt = filterCreator.createCompareFilter(PARAM_INT_ATTR, "<", "35");
Iterator<?> it = layer.getElements(lt, 0, 0);
int t = 0;
while (it.hasNext()) {
Assert.assertTrue("Returned object must be a HibernateTestFeature",
it.next() instanceof HibernateTestFeature);
t++;
}
Assert.assertEquals(3, t);
Filter ne = filterCreator.createCompareFilter(PARAM_INT_ATTR, "<>", "10");
it = layer.getElements(ne, 0, 0);
t = 0;
while (it.hasNext()) {
Assert.assertTrue("Returned object must be a HibernateTestFeature",