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

    assertEquals(" should be false", false, costBean.getHasCosts());
  }