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
@IntegrationTest public class DefaultSuspendResumeServiceUnitTest extends ServicelayerBaseTest
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description DefaultSuspendResumeServiceUnitTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
shouldBeInRunningStateWhenThereAreNoThreads()
void
shouldBeInRunningStateWhenThereAreRunning()
void
shouldFailWhenResumingWithInvalidToken()
void
shouldReportThreadAsARootThreadWhenItsParentIsGone()
void
shouldResumeSystemAfterSuspension()
void
shouldResumeSystemWhenWaitingForSuspensions()
void
shouldReturnResumeTokenAndChangeStateWhenSystemWasRequestedToSuspended()
void
shouldShutdownSystemWhenRequestedToDoSo()
static void
startMasterTenant()
-
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
-
startMasterTenant
public static void startMasterTenant()
-
shouldBeInRunningStateWhenThereAreNoThreads
public void shouldBeInRunningStateWhenThereAreNoThreads()
-
shouldBeInRunningStateWhenThereAreRunning
public void shouldBeInRunningStateWhenThereAreRunning()
-
shouldReportThreadAsARootThreadWhenItsParentIsGone
public void shouldReportThreadAsARootThreadWhenItsParentIsGone() throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
shouldReturnResumeTokenAndChangeStateWhenSystemWasRequestedToSuspended
public void shouldReturnResumeTokenAndChangeStateWhenSystemWasRequestedToSuspended() throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
shouldResumeSystemAfterSuspension
public void shouldResumeSystemAfterSuspension() throws java.lang.InterruptedException, ResumeTokenVerificationFailed
- Throws:
java.lang.InterruptedException
ResumeTokenVerificationFailed
-
shouldFailWhenResumingWithInvalidToken
public void shouldFailWhenResumingWithInvalidToken() throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
shouldResumeSystemWhenWaitingForSuspensions
public void shouldResumeSystemWhenWaitingForSuspensions() throws java.lang.InterruptedException, ResumeTokenVerificationFailed
- Throws:
java.lang.InterruptedException
ResumeTokenVerificationFailed
-
shouldShutdownSystemWhenRequestedToDoSo
public void shouldShutdownSystemWhenRequestedToDoSo() throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
-