Query q = broker.query();
// we are faking a soda query here:
((QueryImpl) q).setOjbQuery(ojbQuery());
int limit = 13;
q.limitSize(limit);
ObjectSet oSet = q.execute();
logger.info("Size of ObjectSet: " + oSet.size());
assertEquals(limit,oSet.size());
int count = 0;
while (oSet.hasNext())
{
count++;
oSet.next();
}
assertEquals(limit, count);
oSet.reset();
count = 0;
while (oSet.hasNext())
{
count++;
oSet.next();
}
assertEquals(limit, count);
}
catch (Throwable t)