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, workflowTemplateService
-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description B2BCostCenterServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
before()
void
test1FindCostCentersAndBudgetsNotVisible()
This test is to verify if allB2BBudgetModel
can be fetched fromB2BCostCenterModel
with disable search restriction for a user.void
test2FindCostCentersAndBudgetsNotVisible()
This test is to verify if allB2BBudgetModel
can be fetched fromB2BCostCenterModel
with disable search restriction for a user.void
test3FindCostCentersAndBudgetsNotVisible()
This test is to verify if allB2BBudgetModel
can be fetched fromB2BCostCenterModel
with disable search restriction for a user.void
testFindCostCenters()
void
testFindCostCentersAndBudgets()
-
Methods inherited from class de.hybris.platform.b2b.B2BIntegrationTest
createJobPerformables, createOrder, createOrder, createOrder, loadTestData, login, login, setDefaultCostCenterOnEntries
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
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 allB2BBudgetModel
can be fetched fromB2BCostCenterModel
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 allB2BBudgetModel
can be fetched fromB2BCostCenterModel
with disable search restriction for a user. But a call to fetchB2BCostCenterModel.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 allB2BBudgetModel
can be fetched fromB2BCostCenterModel
with 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:
java.lang.Exception
-
-