Class ProductConfigurationPersistenceServiceImplTest


  • @UnitTest
    public class ProductConfigurationPersistenceServiceImplTest
    extends java.lang.Object
    • Constructor Detail

      • ProductConfigurationPersistenceServiceImplTest

        public ProductConfigurationPersistenceServiceImplTest()
    • Method Detail

      • setUp

        public void setUp()
      • mockNonUniqueResult

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

        protected void mockGivenQuery​(org.mockito.ArgumentMatcher<FlexibleSearchQuery> queryMatcher,
                                      java.lang.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​(java.lang.String queryString,
                                                                                        java.util.Map<java.lang.String,​java.lang.String> params)
      • matchPageableQueryWithParams

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