Class MultiSyncCatalogTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.catalog.jalo.synchronization.MultiSyncCatalogTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class MultiSyncCatalogTest extends HybrisJUnit4Test
See file '/resources/testcatalogdataForMultisync.csv' which catalogs exist and how the content is!
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description MultiSyncCatalogTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assertAllFinished(long endTimeOutInMilis, CatalogVersionSyncCronJob... cronjobs)
void
setUp()
void
testBigMultiSyncJobsRunningJobByJob()
multisynctest: create for all catalogs sync jobs and connect them to each other (all 3 belongs together).void
testBigMultiSyncJobsRunningSameTimeDependenceByCatJob()
multisynctest: create for all catalogs sync jobs and connect them to each other (all 3 belongs together).void
testBigMultiSyncJobsRunningSameTimeDependenceByNonSyncJob()
void
testInvalidDependantJobsSetup()
Tests if job correctly aborts if wrong dependent jobs have been configured.void
testMultiSyncWithoutJobDependenyButWithCrossReferences()
two catalogs will be synchronized, one catalog has references into the other - result will be additional references to staged/online at same timevoid
testSimpleSync()
test one single sync job, catalog has NO references to other catalogsvoid
testSimpleSyncWithExternalReferences()
test one single sync job, catalog HAS references to other catalogs-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSimpleSync
public void testSimpleSync() throws java.lang.InterruptedException
test one single sync job, catalog has NO references to other catalogs- Throws:
java.lang.InterruptedException
-
testSimpleSyncWithExternalReferences
public void testSimpleSyncWithExternalReferences() throws java.lang.InterruptedException
test one single sync job, catalog HAS references to other catalogs- Throws:
java.lang.InterruptedException
-
testMultiSyncWithoutJobDependenyButWithCrossReferences
public void testMultiSyncWithoutJobDependenyButWithCrossReferences() throws java.lang.InterruptedException
two catalogs will be synchronized, one catalog has references into the other - result will be additional references to staged/online at same time- Throws:
java.lang.InterruptedException
-
testInvalidDependantJobsSetup
public void testInvalidDependantJobsSetup() throws java.lang.InterruptedException
Tests if job correctly aborts if wrong dependent jobs have been configured.- Throws:
java.lang.InterruptedException
-
testBigMultiSyncJobsRunningSameTimeDependenceByCatJob
public void testBigMultiSyncJobsRunningSameTimeDependenceByCatJob() throws java.lang.InterruptedException
multisynctest: create for all catalogs sync jobs and connect them to each other (all 3 belongs together). The online categories should only include online products now and viseversa with the staged version- Throws:
java.lang.InterruptedException
-
testBigMultiSyncJobsRunningSameTimeDependenceByNonSyncJob
public void testBigMultiSyncJobsRunningSameTimeDependenceByNonSyncJob() throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
testBigMultiSyncJobsRunningJobByJob
public void testBigMultiSyncJobsRunningJobByJob() throws java.lang.InterruptedException
multisynctest: create for all catalogs sync jobs and connect them to each other (all 3 belongs together). Same as test above but the jobs are executed step by step- Throws:
java.lang.InterruptedException
-
assertAllFinished
public void assertAllFinished(long endTimeOutInMilis, CatalogVersionSyncCronJob... cronjobs) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
-