assertEquals(0, dao.count(WaveBand.class));
}
@Test
public void update_links() {
Base b = dao.fetchLinks(dao.fetch(Base.class, "blue"), "platoons");
int lv = b.getLevel();
b.setLevel(45);
for (Iterator<Platoon> it = b.getPlatoons().values().iterator(); it.hasNext();) {
it.next().setBaseName("red");
}
dao.updateLinks(b, "platoons");
b = dao.fetch(Base.class, "blue");
assertEquals(lv, b.getLevel());
b = dao.fetchLinks(dao.fetch(Base.class, "red"), "platoons");
assertEquals(6, b.getPlatoons().size());
}