Class AbstractCommerceOrgIntegrationTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.basecommerce.util.BaseCommerceBaseTest
-
- de.hybris.platform.b2bcommercefacades.testframework.AbstractCommerceOrgIntegrationTest
-
- All Implemented Interfaces:
JaloSessionHolder
- Direct Known Subclasses:
DefaultB2BApproverFacadeIntegrationTest
,DefaultB2BBudgetFacadeIntegrationTest
,DefaultB2BCommerceB2BUserGroupFacadeIntegrationTest
,DefaultB2BCommerceUnitFacadeIntegrationTest
,DefaultB2BCommerceUserFacadeIntegrationTest
,DefaultB2BCostCenterFacadeIntegrationTest
,DefaultB2BPermissionFacadeIntegrationTest
,DefaultB2BUnitFacadeIntegrationTest
,DefaultB2BUnitFacadeSkipPathGenerationIntegrationTest
,DefaultB2BUserFacadeIntegrationTest
,DefaultB2BUserGroupFacadeIntegrationTest
@ContextConfiguration(locations="classpath:b2bcommerce/test/b2bcommerce-test-spring.xml") public abstract class AbstractCommerceOrgIntegrationTest extends BaseCommerceBaseTest
Base test class for commerce organization integration tests.
ThesetUp()
method loads core data, essential data (e.g. search restrictions for commerce organization related types) as well as commerce organization related sample data. Finally it sets a B2B admin as the current session user.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.basecommerce.util.BaseCommerceBaseTest
flexibleSearchService
-
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 AbstractCommerceOrgIntegrationTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
assertSearchPageData(int expectedNumberOfResults, SearchPageData<?> searchPageData)
Asserts that the givenSearchPageData
is not null, that the list of results it holds is not null and that the list of results has the expected size.protected abstract java.lang.String
getTestDataPath()
protected UserService
getUserService()
protected void
setCurrentUser(java.lang.String userId)
void
setUp()
-
Methods inherited from class de.hybris.platform.basecommerce.util.BaseCommerceBaseTest
getFlexibleSearchService, getOrderForCode, getProcesses, initMocks, setFlexibleSearchService, waitForProcessToEnd
-
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
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
setCurrentUser
protected void setCurrentUser(java.lang.String userId)
-
assertSearchPageData
protected void assertSearchPageData(int expectedNumberOfResults, SearchPageData<?> searchPageData)
Asserts that- the given
SearchPageData
is not null, - that the list of results it holds is not null and
- that the list of results has the expected size.
- Parameters:
expectedNumberOfResults
- the expected number of search resultssearchPageData
- theSearchPageData
object to execute assertions on
- the given
-
getUserService
protected UserService getUserService()
-
getTestDataPath
protected abstract java.lang.String getTestDataPath()
-
-