public void testInvalidSql() { Collection states = null; try { states = beerData.findAllStates("select * from junk"); } catch (Exception e) { assertTrue("No states found!", states != null && states.size() > 0); } }
public void testGetAllStates() { Collection states = beerData.findAllStates(BeerDao.ALL_STATES); assertTrue("No states found!", states != null && states.size() > 0); }