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,DefaultB2BCommerceB2BUserGroupFacadeIntegrationTest,DefaultB2BCommerceUnitFacadeIntegrationTest,DefaultB2BCommerceUserFacadeIntegrationTest,DefaultB2BPermissionFacadeIntegrationTest
@ContextConfiguration(locations="classpath:b2bcommerce/test/b2bcommerce-test-spring.xml")
public abstract class AbstractCommerceOrgIntegrationTest
extends BaseCommerceBaseTest
Base test class for commerce organization integration tests.
The
The
setUp() 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
flexibleSearchServiceFields 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 TypeMethodDescriptionprotected voidassertSearchPageData(int expectedNumberOfResults, SearchPageData<?> searchPageData) Asserts that the givenSearchPageDatais not null, that the list of results it holds is not null and that the list of results has the expected size.protected abstract Stringprotected UserServiceprotected voidsetCurrentUser(String userId) voidsetUp()Methods inherited from class de.hybris.platform.basecommerce.util.BaseCommerceBaseTest
getFlexibleSearchService, getOrderForCode, getProcesses, setFlexibleSearchService, waitForProcessToEndMethods 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
-
AbstractCommerceOrgIntegrationTest
public AbstractCommerceOrgIntegrationTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
setCurrentUser
-
assertSearchPageData
Asserts that- the given
SearchPageDatais 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- theSearchPageDataobject to execute assertions on
- the given
-
getUserService
-
getTestDataPath
-