Class B2BCostCenterServiceTest

    • Constructor Detail

      • B2BCostCenterServiceTest

        public B2BCostCenterServiceTest()
    • Method Detail

      • before

        public void before()
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testFindCostCenters

        public void testFindCostCenters()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testFindCostCentersAndBudgets

        public void testFindCostCentersAndBudgets()
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • test1FindCostCentersAndBudgetsNotVisible

        public void test1FindCostCentersAndBudgetsNotVisible()
                                                      throws java.lang.Exception
        This test is to verify if all B2BBudgetModel can be fetched from B2BCostCenterModel with disable search restriction for a user.
        Throws:
        java.lang.Exception
      • test2FindCostCentersAndBudgetsNotVisible

        public void test2FindCostCentersAndBudgetsNotVisible()
                                                      throws java.lang.Exception
        This test is to verify if all B2BBudgetModel can be fetched from B2BCostCenterModel with disable search restriction for a user. But a call to fetch B2BCostCenterModel.getBudgets() prior to disable search restriction is made here.
        Throws:
        java.lang.Exception
      • test3FindCostCentersAndBudgetsNotVisible

        public void test3FindCostCentersAndBudgetsNotVisible()
                                                      throws java.lang.Exception
        This test is to verify if all B2BBudgetModel can be fetched from B2BCostCenterModel with disable search restriction for a user. A call to fetch B2BCostCenterModel.getBudgets() prior to disable search restriction made here. But before fetching the budget the ModelService.refresh(Object) has been called.
        Throws:
        java.lang.Exception