Class MultiThreadedImpExImportReaderIntegrationTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.impex.jalo.imp.MultiThreadedImpExImportReaderIntegrationTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class MultiThreadedImpExImportReaderIntegrationTest extends ServicelayerBaseTest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MultiThreadedImpExImportReaderIntegrationTest.ExceptionTestImpExImportJob
static class
MultiThreadedImpExImportReaderIntegrationTest.TestImpExImportJob
-
Field Summary
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description MultiThreadedImpExImportReaderIntegrationTest()
-
Method Summary
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
setUp
public void setUp()
-
tearDown
public void tearDown()
-
shouldNotUseAnyThreadAfterConstruction
public void shouldNotUseAnyThreadAfterConstruction() throws ImpExException
- Throws:
ImpExException
-
shouldFailWhenThereIsNotEnoughThreadsInThePool
public void shouldFailWhenThereIsNotEnoughThreadsInThePool() throws ImpExException
- Throws:
ImpExException
-
shouldUseThreeThreadsForMultithreadedImportWithMaxThreadsSetToOne
public void shouldUseThreeThreadsForMultithreadedImportWithMaxThreadsSetToOne() throws ImpExException
- Throws:
ImpExException
-
shouldStartImportWithThreeThreadsForMultithreadedImport
public void shouldStartImportWithThreeThreadsForMultithreadedImport() throws ImpExException
- Throws:
ImpExException
-
shouldUseAvailableThreadsThreadsForMultithreadedImport
public void shouldUseAvailableThreadsThreadsForMultithreadedImport() throws ImpExException
- Throws:
ImpExException
-
shouldFailCronJobWhenThereIsLessThreadsThanRequired
public void shouldFailCronJobWhenThereIsLessThreadsThanRequired() throws java.io.IOException, JaloGenericCreationException, JaloAbstractTypeException
- Throws:
java.io.IOException
JaloGenericCreationException
JaloAbstractTypeException
-
shouldNotFailCronJobWhenThereAreAtLeastThreeThreads
public void shouldNotFailCronJobWhenThereAreAtLeastThreeThreads() throws java.io.IOException, JaloGenericCreationException, JaloAbstractTypeException
- Throws:
java.io.IOException
JaloGenericCreationException
JaloAbstractTypeException
-
shouldSuccessfullyImportWithIllegalStateExceptionThrownFromImpExImportReader
public void shouldSuccessfullyImportWithIllegalStateExceptionThrownFromImpExImportReader()
-
shouldNotHangUpCronjobProcessWhenRuntimeExceptionIsThrownDuringPostProcess
public void shouldNotHangUpCronjobProcessWhenRuntimeExceptionIsThrownDuringPostProcess()
-
-