Search in sources :

Example 6 with ProjectCost

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);
}
Also used : Project(com.autentia.tnt.businessobject.Project) GregorianCalendar(java.util.GregorianCalendar) ProjectCost(com.autentia.tnt.businessobject.ProjectCost) BillBreakDown(com.autentia.tnt.businessobject.BillBreakDown) Test(org.junit.Test)

Aggregations

ProjectCost (com.autentia.tnt.businessobject.ProjectCost)6 BillBreakDown (com.autentia.tnt.businessobject.BillBreakDown)5 Project (com.autentia.tnt.businessobject.Project)4 GregorianCalendar (java.util.GregorianCalendar)4 Test (org.junit.Test)4 BigDecimal (java.math.BigDecimal)2 Activity (com.autentia.tnt.businessobject.Activity)1 ProjectRole (com.autentia.tnt.businessobject.ProjectRole)1 User (com.autentia.tnt.businessobject.User)1 SortCriteria (com.autentia.tnt.dao.SortCriteria)1 ActivityDAO (com.autentia.tnt.dao.hibernate.ActivityDAO)1 ProjectCostDAO (com.autentia.tnt.dao.hibernate.ProjectCostDAO)1 ProjectRoleDAO (com.autentia.tnt.dao.hibernate.ProjectRoleDAO)1 ActivitySearch (com.autentia.tnt.dao.search.ActivitySearch)1 ProjectCostSearch (com.autentia.tnt.dao.search.ProjectCostSearch)1 ProjectRoleSearch (com.autentia.tnt.dao.search.ProjectRoleSearch)1 ArrayList (java.util.ArrayList)1 Enumeration (java.util.Enumeration)1 Hashtable (java.util.Hashtable)1