use of com.autentia.tnt.businessobject.ProjectCost in project TNTConcept by autentia.
the class BillManagerTest method getAllBitacoreBreakDownsHaveCorrectIvaForLastDayOf18IvaTest.
@Test
public void getAllBitacoreBreakDownsHaveCorrectIvaForLastDayOf18IvaTest() {
final Project project = insertProjectIntoContext(lastDateFor18Iva);
ProjectCost projectCost = createProjectCost(project);
final GregorianCalendar calendarEnd = new GregorianCalendar(2012, 11, 1);
final List<BillBreakDown> billBreakDownList = billManager.getAllBitacoreBreakDowns(lastDateFor18Iva, calendarEnd.getTime(), project);
assertEquals(IVA18, billBreakDownList.get(0).getIva());
assertEquals(IVA18, billBreakDownList.get(1).getIva());
deleteProjectCostFromContext(projectCost);
deleteProjectFromContext(project);
}
Aggregations