@Test public void testGetHasCostsWithCost() throws SQLException, IOException { costBean.setCostValue("12"); costBean.setText("FOOD"); costBean.addCost(); assertEquals(" should be true", true, costBean.getHasCosts()); }
@Test public void testGetHasCostsWithNoCost() throws SQLException, IOException { assertEquals(" should be false", false, costBean.getHasCosts()); }