Class DefaultSuspendResumeServiceUnitTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.core.threadregistry.DefaultSuspendResumeServiceUnitTest
- All Implemented Interfaces:
JaloSessionHolder
-
Field Summary
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidstatic voidMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
DefaultSuspendResumeServiceUnitTest
public DefaultSuspendResumeServiceUnitTest()
-
-
Method Details
-
startMasterTenant
public static void startMasterTenant() -
shouldBeInRunningStateWhenThereAreNoThreads
public void shouldBeInRunningStateWhenThereAreNoThreads() -
shouldBeInRunningStateWhenThereAreRunning
public void shouldBeInRunningStateWhenThereAreRunning() -
shouldReportThreadAsARootThreadWhenItsParentIsGone
- Throws:
InterruptedException
-
shouldReturnResumeTokenAndChangeStateWhenSystemWasRequestedToSuspended
public void shouldReturnResumeTokenAndChangeStateWhenSystemWasRequestedToSuspended() throws InterruptedException- Throws:
InterruptedException
-
shouldResumeSystemAfterSuspension
public void shouldResumeSystemAfterSuspension() throws InterruptedException, ResumeTokenVerificationFailed -
shouldFailWhenResumingWithInvalidToken
- Throws:
InterruptedException
-
shouldResumeSystemWhenWaitingForSuspensions
public void shouldResumeSystemWhenWaitingForSuspensions() throws InterruptedException, ResumeTokenVerificationFailed -
shouldShutdownSystemWhenRequestedToDoSo
- Throws:
InterruptedException
-