public void getSalesdataForGarasjeVilla2010_08() throws ProTransException {
Integer year = 2010;
Integer week = 16;
String productAreaName = "Garasje villa";
SalesStatistic statistic = salesWebManager.generateSalesStatistics(
year, week, productAreaName);
assertNotNull(statistic);
assertEquals("Garasje villa", statistic.getProductAreaName());
assertEquals(Integer.valueOf(107), statistic.getNumberOfOffer());
assertEquals(Integer.valueOf(37), statistic.getNumberOfOrder());
assertEquals(Integer.valueOf(20), statistic.getNumberOfConfirmedOrder());
assertEquals(BigDecimal.valueOf(3119424), statistic.getSumOwnProuction());
assertEquals(BigDecimal.valueOf(0.3231), statistic.getSumDG());
// assertEquals(BigDecimal.valueOf(0).setScale(2),
// statistic.getSumDGProcent());
assertEquals(BigDecimal.valueOf(32.31), statistic.getSumDGProcent());
assertEquals(BigDecimal.valueOf(0), statistic.getSaleBudget());
assertEquals(SalesGoal.GOAL_0, statistic.getSalesGoalWeek());
assertEquals(BigDecimal.valueOf(12465248), statistic.getOrderReserve());
assertEquals(BigDecimal.valueOf(22369809), statistic
.getAccumulatedSumOwnProduction());
assertEquals(BigDecimal.valueOf(0.3329), statistic
.getAccumulatedSumDG());
assertEquals(BigDecimal.valueOf(33.29).setScale(2), statistic
.getAccumulatedSumDGProcent());
assertEquals(Integer.valueOf(1303), statistic
.getAccumulatedNumberOfOffer());
assertEquals(Integer.valueOf(257), statistic
.getAccumulatedNumberOfOrder());
assertEquals(Integer.valueOf(97), statistic
.getAccumulatedNumberOfConfirmedOrder());
assertEquals(BigDecimal.valueOf(0), statistic
.getAccumulatedSaleBudget());
assertEquals(SalesGoal.GOAL_0, statistic.getSalesGoalYear());
}