@IntegrationTest public class B2BCostCenterServiceTest extends B2BIntegrationTransactionalTest
b2bCartFactory, b2bCartService, b2bCostCenterService, b2bEmailService, b2bOrderService, b2bUnitService, baseSiteService, businessProcessService, calculationService, commerceCheckoutService, commonI18NService, flexibleSearchService, i18nService, modelService, newestWorkflowService, orderCodeGenerator, processParameterHelper, productService, searchRestrictionService, sessionService, userService, validationService, workflowActionService, workflowProcessingService, workflowTemplateServiceimportServicejaloSession| Constructor and Description |
|---|
B2BCostCenterServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
before() |
void |
test1FindCostCentersAndBudgetsNotVisible()
This test is to verify if all
B2BBudgetModel can be fetched from
B2BCostCenterModel with disable search restriction for a user. |
void |
test2FindCostCentersAndBudgetsNotVisible()
This test is to verify if all
B2BBudgetModel can be fetched from
B2BCostCenterModel with disable search restriction for a user. |
void |
test3FindCostCentersAndBudgetsNotVisible()
This test is to verify if all
B2BBudgetModel can be fetched from
B2BCostCenterModel with disable search restriction for a user. |
void |
testFindCostCenters() |
void |
testFindCostCentersAndBudgets() |
createJobPerformables, createOrder, createOrder, createOrder, loadTestData, login, login, setDefaultCostCenterOnEntriescreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void before()
throws java.lang.Exception
java.lang.Exceptionpublic void testFindCostCenters()
throws java.lang.Exception
java.lang.Exceptionpublic void testFindCostCentersAndBudgets()
throws java.lang.Exception
java.lang.Exceptionpublic void test1FindCostCentersAndBudgetsNotVisible()
throws java.lang.Exception
B2BBudgetModel can be fetched from
B2BCostCenterModel with disable search restriction for a user.java.lang.Exceptionpublic void test2FindCostCentersAndBudgetsNotVisible()
throws java.lang.Exception
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.java.lang.Exceptionpublic void test3FindCostCentersAndBudgetsNotVisible()
throws java.lang.Exception
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.java.lang.ExceptionCopyright © 2018 SAP SE. All Rights Reserved.