Class ThreadRegistryIntegrationTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.core.threadregistry.ThreadRegistryIntegrationTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class ThreadRegistryIntegrationTest extends ServicelayerBaseTest
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description ThreadRegistryIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
shouldNotBeRegisteredWhenRunInStandardThread()
void
shouldNotFailWhenThreadIsRegisteredTwiceInJunitThread()
void
shouldNotFailWhenThreadIsUnregisteredTwiceInJunitThread()
void
shouldRevertToPreviousOperationInfo()
void
shouldSuccesfullyRegisterInitThread()
void
shouldSuccessfullyRegisterPoolableThread()
void
shouldSuccessfullyRegisterRegistrableThread()
void
shouldSuccessfullyRenamePoolableThread()
void
shouldSuccessfullySetTenantForCurrentThread()
void
shouldThrowISEWhenRegisteringThreadTwice()
void
shouldThrowISEWhenUnregisteringThreadTwice()
-
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
-
shouldNotFailWhenThreadIsRegisteredTwiceInJunitThread
public void shouldNotFailWhenThreadIsRegisteredTwiceInJunitThread()
-
shouldNotFailWhenThreadIsUnregisteredTwiceInJunitThread
public void shouldNotFailWhenThreadIsUnregisteredTwiceInJunitThread()
-
shouldSuccessfullyRegisterRegistrableThread
public void shouldSuccessfullyRegisterRegistrableThread() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldSuccessfullyRegisterPoolableThread
public void shouldSuccessfullyRegisterPoolableThread() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldSuccessfullyRenamePoolableThread
public void shouldSuccessfullyRenamePoolableThread() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldSuccessfullySetTenantForCurrentThread
public void shouldSuccessfullySetTenantForCurrentThread() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldNotBeRegisteredWhenRunInStandardThread
public void shouldNotBeRegisteredWhenRunInStandardThread() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldThrowISEWhenRegisteringThreadTwice
public void shouldThrowISEWhenRegisteringThreadTwice() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldThrowISEWhenUnregisteringThreadTwice
public void shouldThrowISEWhenUnregisteringThreadTwice() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldSuccesfullyRegisterInitThread
public void shouldSuccesfullyRegisterInitThread() throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
shouldRevertToPreviousOperationInfo
public void shouldRevertToPreviousOperationInfo() throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
-