Package de.hybris.platform.catalog.jalo
Class CatalogTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.testframework.HybrisJUnit4TransactionalTest
-
- de.hybris.platform.catalog.jalo.CatalogTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class CatalogTest extends HybrisJUnit4TransactionalTest
Test for extension Catalog
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringAUprotected static java.lang.StringCATALOGVERSION_LANGUAGE_DEprotected static java.lang.StringCATALOGVERSION_LANGUAGE_ENprotected static java.lang.StringCHprotected static java.lang.StringDE-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description CatalogTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckCatalogVersion(CatalogVersion catalogVersion, java.lang.String versionStr)protected voidcreateCatalog()protected MediacreateMedia(java.lang.String id, java.lang.String file, CatalogVersion catVersion)protected ProductcreateProduct(java.lang.String id, java.lang.String name, java.lang.String desc, CatalogVersion catVersion)voidsetUp()voidtestCatalog()voidtestDefaultVersionOwner()voidtestGetterMethods()voidtestOrderOverride()voidtestPLA7006default()voidtestPLA7006withDisabledinSessionContext()voidtestPLA7006withEnabledinSessionContext()voidtestRemoveActiveCatalogVersion()voidtestRemoveDefaultCatalog()voidtestSetAllName()-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Field Detail
-
DE
protected static final java.lang.String DE
- See Also:
- Constant Field Values
-
AU
protected static final java.lang.String AU
- See Also:
- Constant Field Values
-
CH
protected static final java.lang.String CH
- See Also:
- Constant Field Values
-
CATALOGVERSION_LANGUAGE_DE
protected static final java.lang.String CATALOGVERSION_LANGUAGE_DE
- See Also:
- Constant Field Values
-
CATALOGVERSION_LANGUAGE_EN
protected static final java.lang.String CATALOGVERSION_LANGUAGE_EN
- See Also:
- Constant Field Values
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
createCatalog
protected void createCatalog() throws java.lang.Exception- Throws:
java.lang.Exception
-
createProduct
protected Product createProduct(java.lang.String id, java.lang.String name, java.lang.String desc, CatalogVersion catVersion) throws java.lang.Exception
- Throws:
java.lang.Exception
-
createMedia
protected Media createMedia(java.lang.String id, java.lang.String file, CatalogVersion catVersion) throws java.lang.Exception
- Throws:
java.lang.Exception
-
checkCatalogVersion
protected void checkCatalogVersion(CatalogVersion catalogVersion, java.lang.String versionStr)
-
testOrderOverride
public void testOrderOverride()
-
testCatalog
public void testCatalog() throws JaloSecurityException- Throws:
JaloSecurityException
-
testGetterMethods
public void testGetterMethods()
-
testRemoveDefaultCatalog
public void testRemoveDefaultCatalog()
-
testRemoveActiveCatalogVersion
public void testRemoveActiveCatalogVersion()
-
testSetAllName
public void testSetAllName() throws java.lang.Exception- Throws:
java.lang.Exception
-
testDefaultVersionOwner
public void testDefaultVersionOwner() throws ConsistencyCheckException- Throws:
ConsistencyCheckException
-
testPLA7006default
public void testPLA7006default() throws ConsistencyCheckException- Throws:
ConsistencyCheckException
-
testPLA7006withDisabledinSessionContext
public void testPLA7006withDisabledinSessionContext() throws ConsistencyCheckException- Throws:
ConsistencyCheckException
-
testPLA7006withEnabledinSessionContext
public void testPLA7006withEnabledinSessionContext() throws ConsistencyCheckException- Throws:
ConsistencyCheckException
-
-