EnvironmentIbatisDao extends SqlMapClientDaoSupport implements EnvironmentDao { @SuppressWarnings("unchecked") @Override public List<Environment> findAll() { return getSqlMapClientTemplate().queryForList("Environment.findAll"); }  @SuppressWarnings("unchecked") @Override List<Environment> findAll(); @Override void delete(int id); @Override int create(Environment env); @Override void update(Environment env); @Override Environment findEnvByID(int id); @Override Environment findPrevEnv(int envId); @Override Environment findEnvByName(String name);  }
@Test public void testFindAll() { List<Environment> environments = environmentDao.findAll(); assertNotNull(environments); assertTrue(environments.size() > 0); }