Class B2BCostCenterServiceTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTest
de.hybris.platform.b2b.B2BIntegrationTest
de.hybris.platform.b2b.B2BIntegrationTransactionalTest
de.hybris.platform.b2b.services.impl.B2BCostCenterServiceTest
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest
@ContextConfiguration(locations="classpath:/b2bapprovalprocess-spring-test.xml")
public class B2BCostCenterServiceTest
extends B2BIntegrationTransactionalTest
-
Field Summary
Fields inherited from class de.hybris.platform.b2b.B2BIntegrationTest
b2bCartFactory, b2bCartService, b2bCostCenterService, b2bEmailService, b2bOrderService, b2bUnitService, baseSiteService, businessProcessService, calculationService, commerceCheckoutService, commonI18NService, flexibleSearchService, i18nService, modelService, newestWorkflowService, orderCodeGenerator, processParameterHelper, productService, searchRestrictionService, sessionService, userService, validationService, workflowActionService, workflowProcessingService, workflowTemplateServiceFields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbefore()voidThis test is to verify if allB2BBudgetModelcan be fetched fromB2BCostCenterModelwith disable search restriction for a user.voidThis test is to verify if allB2BBudgetModelcan be fetched fromB2BCostCenterModelwith disable search restriction for a user.voidThis test is to verify if allB2BBudgetModelcan be fetched fromB2BCostCenterModelwith disable search restriction for a user.voidvoidMethods inherited from class de.hybris.platform.b2b.B2BIntegrationTest
createJobPerformables, createOrder, createOrder, createOrder, loadTestData, login, login, setDefaultCostCenterOnEntriesMethods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
B2BCostCenterServiceTest
public B2BCostCenterServiceTest()
-
-
Method Details
-
before
- Throws:
Exception
-
testFindCostCenters
- Throws:
Exception
-
testFindCostCentersAndBudgets
- Throws:
Exception
-
test1FindCostCentersAndBudgetsNotVisible
This test is to verify if allB2BBudgetModelcan be fetched fromB2BCostCenterModelwith disable search restriction for a user.- Throws:
Exception
-
test2FindCostCentersAndBudgetsNotVisible
This test is to verify if allB2BBudgetModelcan be fetched fromB2BCostCenterModelwith disable search restriction for a user. But a call to fetchB2BCostCenterModel.getBudgets()prior to disable search restriction is made here.- Throws:
Exception
-
test3FindCostCentersAndBudgetsNotVisible
This test is to verify if allB2BBudgetModelcan be fetched fromB2BCostCenterModelwith disable search restriction for a user. A call to fetchB2BCostCenterModel.getBudgets()prior to disable search restriction made here. But before fetching the budget theModelService.refresh(Object)has been called.- Throws:
Exception
-