示例#1
0
  @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);
  }
示例#2
0
 public void testSearch() throws Exception {
   assertTrue(bean.getLodgers().size() >= 1);
   assertFalse(bean.hasErrors());
 }