Class ProductConfigurationPersistenceServiceImplTest

java.lang.Object
de.hybris.platform.sap.productconfig.services.impl.ProductConfigurationPersistenceServiceImplTest

@UnitTest public class ProductConfigurationPersistenceServiceImplTest extends Object
  • Constructor Details

    • ProductConfigurationPersistenceServiceImplTest

      public ProductConfigurationPersistenceServiceImplTest()
  • Method Details

    • setUp

      public void setUp()
    • mockPageableResult

      protected void mockPageableResult(org.mockito.ArgumentMatcher<PaginatedFlexibleSearchParameter> queryMatcher, int size)
    • mockNonUniqueResult

      protected void mockNonUniqueResult(org.mockito.ArgumentMatcher<FlexibleSearchQuery> queryMatcher, int numResults)
    • mockGivenQuery

      protected void mockGivenQuery(org.mockito.ArgumentMatcher<FlexibleSearchQuery> queryMatcher, Object model)
    • mockGivenQueryEmpty

      protected void mockGivenQueryEmpty(org.mockito.ArgumentMatcher<FlexibleSearchQuery> queryMatcher)
    • getOrderEntryByConfigId

      public void getOrderEntryByConfigId()
    • getOrderEntryByDraftConfigId

      public void getOrderEntryByDraftConfigId()
    • getOrderEntryByConfigIdReturnNull

      public void getOrderEntryByConfigIdReturnNull()
    • getOrderEntryByConfigIdNonUniqueResult

      public void getOrderEntryByConfigIdNonUniqueResult()
    • getByProductCode

      public void getByProductCode()
    • getByProductCodeReturnNull

      public void getByProductCodeReturnNull()
    • getByProductCodeNonUniqueResult

      public void getByProductCodeNonUniqueResult()
    • getByProductCodeAnonymousUser

      public void getByProductCodeAnonymousUser()
    • getByProductCodeNull

      public void getByProductCodeNull()
    • testGetByConfigId

      public void testGetByConfigId()
    • testGetByConfigIdNull

      public void testGetByConfigIdNull()
    • testGetByConfigIdConfigRemoved

      public void testGetByConfigIdConfigRemoved()
    • testGetByConfigIdConfigAllowNull

      public void testGetByConfigIdConfigAllowNull()
    • getOrderEntryByPK

      public void getOrderEntryByPK()
    • getEntryByConfigIdNull

      public void getEntryByConfigIdNull()
    • testGetByUserSessionId

      public void testGetByUserSessionId()
    • testGetByUserId

      public void testGetByUserId()
    • testGetProductRelatedByThreshold

      public void testGetProductRelatedByThreshold()
    • testGetOrphaned

      public void testGetOrphaned()
    • testCalculateModificationDate

      public void testCalculateModificationDate()
    • testGetProductRelatedByThresholdDateNull

      public void testGetProductRelatedByThresholdDateNull()
    • testPaginatedFlexibleSearchService

      public void testPaginatedFlexibleSearchService()
    • testCreatePageableQuery

      public void testCreatePageableQuery()
    • testIsOnlyRelatedToGivenEntry

      public void testIsOnlyRelatedToGivenEntry()
    • testIsOnlyRelatedToGivenEntryOneMatchHasDifferentPk

      public void testIsOnlyRelatedToGivenEntryOneMatchHasDifferentPk()
    • testIsOnlyRelatedToGivenEntryBothMatchesDifferent

      public void testIsOnlyRelatedToGivenEntryBothMatchesDifferent()
    • testIsOnlyRelatedToGivenEntryNullConfigId

      public void testIsOnlyRelatedToGivenEntryNullConfigId()
    • testIsOnlyRelatedToGivenEntryNullCartEntryKey

      public void testIsOnlyRelatedToGivenEntryNullCartEntryKey()
    • testGetAllOrderEntriesByConfigIdNull

      public void testGetAllOrderEntriesByConfigIdNull()
    • testGetAllOrderEntriesByConfigId

      public void testGetAllOrderEntriesByConfigId()
    • testGetProductConfigByConfigIdPolyglot

      public void testGetProductConfigByConfigIdPolyglot()
    • testGetProductConfigByConfigIdPolyglotNotFound

      public void testGetProductConfigByConfigIdPolyglotNotFound()
    • testIsRelatedToAbstractOrderEntry

      public void testIsRelatedToAbstractOrderEntry()
    • testIsRelatedToAbstractOrderEntryNoMatch

      public void testIsRelatedToAbstractOrderEntryNoMatch()
    • testIsRelatedToAbstractOrderOnlyDraft

      public void testIsRelatedToAbstractOrderOnlyDraft()
    • matchQueryWithParams

      protected org.mockito.ArgumentMatcher<FlexibleSearchQuery> matchQueryWithParams(String queryString, Map<String,Object> params)
    • matchPageableQueryWithParams

      protected org.mockito.ArgumentMatcher<PaginatedFlexibleSearchParameter> matchPageableQueryWithParams(String queryString, Map<String,String> params, int pageSize, int currentPage)