@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, workflowTemplateServicedefaultLanguage, jaloSession| 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, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic void testFindCostCentersAndBudgets()
throws Exception
Exceptionpublic void test1FindCostCentersAndBudgetsNotVisible()
throws Exception
B2BBudgetModel can be fetched from
B2BCostCenterModel with disable search restriction for a user.Exceptionpublic void test2FindCostCentersAndBudgetsNotVisible()
throws 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.Exceptionpublic void test3FindCostCentersAndBudgetsNotVisible()
throws 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.ExceptionCopyright © 2017 SAP SE. All Rights Reserved.