Class DefaultCxCatalogServiceTest
- java.lang.Object
-
- de.hybris.platform.personalizationservices.strategies.impl.DefaultCxCatalogServiceTest
-
@UnitTest public class DefaultCxCatalogServiceTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringCATALOG1protected static java.lang.StringCATALOG2protected static java.lang.StringCATALOG3protected static java.lang.StringCATALOG4protected static java.lang.StringCATALOG5protected CxConfigurationServiceconfigServiceprotected CxCatalogLookupStrategys1protected CxCatalogLookupStrategys2protected CxCatalogLookupStrategys3
-
Constructor Summary
Constructors Constructor Description DefaultCxCatalogServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidassertEquals(java.util.List<CatalogVersionModel> actual, java.lang.String... expected)protected java.util.List<CxCatalogLookupStrategy>buildStrategies(CxCatalogLookupStrategy... strategies)protected CxCatalogLookupStrategybuildStrategy(CxCatalogLookupType type, java.lang.String... catalogs)protected CxCatalogLookupStrategybuildStrategy(java.lang.String... catalogs)protected voidsetLookupType(CxCatalogLookupType type)voidsetup()voidtestMultipleStrategy()voidtestOverlapingStrategy()voidtestSingleStrategy()
-
-
-
Field Detail
-
CATALOG1
protected static final java.lang.String CATALOG1
- See Also:
- Constant Field Values
-
CATALOG2
protected static final java.lang.String CATALOG2
- See Also:
- Constant Field Values
-
CATALOG3
protected static final java.lang.String CATALOG3
- See Also:
- Constant Field Values
-
CATALOG4
protected static final java.lang.String CATALOG4
- See Also:
- Constant Field Values
-
CATALOG5
protected static final java.lang.String CATALOG5
- See Also:
- Constant Field Values
-
s1
protected final CxCatalogLookupStrategy s1
-
s2
protected final CxCatalogLookupStrategy s2
-
s3
protected final CxCatalogLookupStrategy s3
-
configService
protected CxConfigurationService configService
-
-
Method Detail
-
setup
public void setup()
-
buildStrategies
protected java.util.List<CxCatalogLookupStrategy> buildStrategies(CxCatalogLookupStrategy... strategies)
-
buildStrategy
protected CxCatalogLookupStrategy buildStrategy(java.lang.String... catalogs)
-
buildStrategy
protected CxCatalogLookupStrategy buildStrategy(CxCatalogLookupType type, java.lang.String... catalogs)
-
setLookupType
protected void setLookupType(CxCatalogLookupType type)
-
testSingleStrategy
public void testSingleStrategy()
-
testMultipleStrategy
public void testMultipleStrategy()
-
testOverlapingStrategy
public void testOverlapingStrategy()
-
assertEquals
protected void assertEquals(java.util.List<CatalogVersionModel> actual, java.lang.String... expected)
-
-