@IntegrationTest public class DefaultCatalogSynchronizationServiceTest extends BaseSynchronizationStatusServiceTest
| Modifier and Type | Field and Description |
|---|---|
static int |
ASYNC_CRONJOB_TIMEOUT_SECONDS |
static int |
NUM_OF_PRODUCTS |
static int |
NUM_OF_REFS |
static int |
NUMBER_OF_THREADS |
catalogSynchronizationService, catalogTypeService, synchronizationStatusServicedefaultLanguage, jaloSession| Constructor and Description |
|---|
DefaultCatalogSynchronizationServiceTest() |
assertSyncInfoEquals, createCatalog, createCatalogVersion, createProductInCatalogVersion, createSyncJob, getMaxThreads, performSynchronization, prepareSyncConfig, resolveCounterpart, setCatalogTypeService, setModelService, setSynchronizationStatusServiceautowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic static final int NUM_OF_PRODUCTS
public static final int NUM_OF_REFS
public static final int NUMBER_OF_THREADS
public static final int ASYNC_CRONJOB_TIMEOUT_SECONDS
public DefaultCatalogSynchronizationServiceTest()
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void testSyncWithSavedValues()
public void shouldSynchronizeBothPartialSyncJobsIfItemsDoNotOverlap()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldNotSynchronizeTheSecondPartialSyncIfItemsOverlap()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldNotSynchronizeTheSecondPartialSyncIfOtherFullSyncIsRunning()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldNotSynchronizeTheSecondFullSyncIfOtherFullSyncIsRunning()
throws java.lang.Exception
java.lang.Exceptionpublic void testMediaFilesProperlyRemovedUponUpdateSync()
public void shouldSynchronizeTwoCatalogsFullyMultithreaded()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldSynchronizeWithSyncJobAndConfigSynchronous()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldSynchronizePartiallyWithSyncJobAndConfigSynchronous()
protected SyncItemJobModel createSyncJob(CatalogVersionModel source, CatalogVersionModel target)
createSyncJob in class BaseSynchronizationStatusServiceTestpublic void shouldSynchronizeRemovedItems()
public void testSynchronizationForOneProduct()
public void testPullSynchronizationForOneProduct()
public void testGetApplicableItemsForDifferentSyncItemJobs()
public void testGetSyncCounterpartItems()
public void awaitThenSynchronizeAndCountDown(java.util.List<ProductModel> sourceProductsPart, SyncItemJobModel syncItemJob, SyncConfig syncConfig, java.util.concurrent.atomic.AtomicReference<SyncResult> result, java.util.concurrent.CountDownLatch startSignal, java.util.concurrent.CountDownLatch testFinish, long millisecondsOffSet)
protected SyncConfig createSyncConfig(boolean synchronous)
public void testCreateAndRetrieveSnycJobs()
public void testCreateAndRetrieveSnycJobsWithCode()
Copyright © 2018 SAP SE. All Rights Reserved.