225226227228229230231232233234235
assertEquals(entityCount, list.size()); sleep(1); } assertNotNull(list); DummyEntity toDelete = list.get(0); Session session = sf.openSession(); Transaction tx = session.beginTransaction(); try { session.delete(toDelete); tx.commit();