assertEquals(after, before + 1);
}
public void load() {
int before = countRowsInTable("_item");
Item item = getItem();
dao.save(item);
assertEquals(countRowsInTable("_item"), before + 1);
List<Item> items = dao.load();
assertEquals(items.size(), before + 1);
assertEquals(items.get(before).getFirstName(), "f");
Item lastItem = dao.load(items.get(before).getId());
assertNotNull(lastItem);
assertEquals(lastItem.getLastName(), "l");
assertEquals(dao.load("@").size(), 1);
assertEquals(dao.load("@1").size(), 0);
}