@Override @SuppressWarnings("unchecked") protected void onSetUp() throws Exception { super.onSetUp(); bean = new LodgerList(); bean.setLodgerManager(lodgerManager); // add a test lodger to the database Lodger lodger = new Lodger(); // enter all required fields lodgerManager.save(lodger); }
public void testSearch() throws Exception { assertTrue(bean.getLodgers().size() >= 1); assertFalse(bean.hasErrors()); }