Class 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 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.
  • Constructor Details

    • AbstractCommerceOrgIntegrationTest

      public AbstractCommerceOrgIntegrationTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • setCurrentUser

      protected void setCurrentUser(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 results
      searchPageData - the SearchPageData object to execute assertions on
    • getUserService

      protected UserService getUserService()
    • getTestDataPath

      protected abstract String getTestDataPath()