Package no.ugland.utransprod.util

Examples of no.ugland.utransprod.util.Periode


    assertFalse(uproduserteTakstoler.isEmpty());
  }

  @Test
  public void findAllProductionByPeriode() {
    Periode periode = new Periode(2009, 45, 45);
    TakstolAllVManager takstolAllVManager = (TakstolAllVManager) ModelUtil
        .getBean(TakstolAllVManager.MANAGER_NAME);
    Map<String, Map<String, Set<JiggReportData>>> list = takstolAllVManager
        .findJiggReportDataByPeriode(periode);
    assertNotNull(list);
View Full Code Here


        productAreaManager = (ProductAreaManager) ModelUtil.getBean("productAreaManager");
    }

    @Test
    public void testDrawerGroupReportGarageVilla() throws Exception {
        Periode periode = new Periode(2009, 42, 42);
        ProductArea productArea = productAreaManager.findByName("Garasje villa");
        List<DrawerGroup> drawerGroups = drawerVManager
                .groupByProductAreaPeriode(productArea,
                        periode);
        assertNotNull(drawerGroups);
View Full Code Here

        assertEquals("Garasje villa", drawerGroup.getProductArea().getProductArea());
       
    }
    @Test
    public void testGetDrawerBasisGarageVilla(){
        Periode periode = new Periode(2009, 42, 42);
        List<DrawerV> drawers = drawerVManager
                .findByProductAreaPeriode(
                        productAreaManager.getProductAreaNrListFromAreaName("Garasje villa"),
                        periode);
        assertNotNull(drawers);
View Full Code Here

  @Test
  public void generateSalesgoalReport() throws Exception{
    URL url = getClass().getClassLoader().getResource("Budsjett_salesman_import_villa.xls");
        budgetManager.importBudget(url.getFile(),BudgetType.SALESMAN);
        Periode periode = new Periode(2010, 5, 5);
        Collection<SalesmanGoal> salesGoalList = salesVManager.getSalesGoalList(periode);
    ExcelUtil.setUseUniqueFileName(false);
    ExcelUtil excelUtil=new ExcelUtil();
   
    ExcelReportSetting reportSetting=new ExcelReportSetting(ExcelReportEnum.SALES_GOAL);
View Full Code Here

public class TakstoltegnerRapportTest {

  @Test
  public void generateTakstoltegnerRapport() throws Exception{
    TakstoltegnerVManager takstoltegnerVManager=(TakstoltegnerVManager)ModelUtil.getBean(TakstoltegnerVManager.MANAGER_NAME);
    Periode periode=new Periode(2010, 4, 5);
    Map<TakstoltegnerVSum,Collection<TakstoltegnerV>> tegnere=takstoltegnerVManager.findByPeriode(periode);
   
    assertNotNull(tegnere);
   
    ExcelUtil.setUseUniqueFileName(false);
View Full Code Here

        .getBean(TakstoltegnerVManager.MANAGER_NAME);
  }

  @Test
  public void hentTakstoltegnerdataForUke4_5() {
    Periode periode = new Periode(2010, 4, 5);
    Map<TakstoltegnerVSum, Collection<TakstoltegnerV>> reportMap = takstoltegnerVManager
        .findByPeriode(periode);

    assertNotNull(reportMap);
    assertEquals(3, reportMap.size());
View Full Code Here

    when(costUnitManager.findByName("Intern")).thenReturn(costUnit);
  }

  @Test
  public void skalBeregneTransportkostnad() throws Exception {
    Periode periode = new Periode(YEAR, WEEK_50, WEEK_50);
    String productAreaGroupName = "Garasje";
    Transport transport = new Transport();
    transport.setSent(new Date());
    Supplier supplier = new Supplier();
    transport.setSupplier(supplier);
View Full Code Here

  public void testGenerateTransportCostList() throws Exception {
    importAlPostalCodes();
    updatePricesFromFile();
    setUpOrder("0354");
    List<TransportCostBasis> list = transportCostManager
        .generateTransportCostList(new Periode(YEAR, WEEK_50, WEEK_50));
    assertNotNull(list);
    assertEquals(1, list.size());

    TransportCostBasis transportCostBasis = list.get(0);
View Full Code Here

    importAlPostalCodes();
    updatePricesFromFile();
    setUpOrder("0354");
    setUpTakstolOrder();
    List<TransportCostBasis> list = transportCostManager
        .generateTransportCostList(new Periode(YEAR, WEEK_50, WEEK_50));
    assertNotNull(list);
    assertEquals(1, list.size());

    TransportCostBasis transportCostBasis = list.get(0);
View Full Code Here

  public void testSetInvoiceNr() throws Exception {
    importAlPostalCodes();
    updatePricesFromFile();
    setUpOrder("0354");
    List<TransportCostBasis> list = transportCostManager
        .generateTransportCostList(new Periode(YEAR, WEEK_50, WEEK_50));
    assertNotNull(list);
    assertEquals(1, list.size());

    TransportCostBasis transportCostBasis = list.get(0);
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.util.Periode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.