@IntegrationTest public class DefaultSuspendResumeServiceUnitTest extends ServicelayerBaseTest
jaloSession| Constructor and Description |
|---|
DefaultSuspendResumeServiceUnitTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
shouldBeInRunningStateWhenThereAreNoThreads() |
void |
shouldBeInRunningStateWhenThereAreRunning() |
void |
shouldFailWhenResumingWithInvalidToken() |
void |
shouldReportThreadAsARootThreadWhenItsParentIsGone() |
void |
shouldResumeSystemAfterSuspension() |
void |
shouldResumeSystemWhenWaitingForSuspensions() |
void |
shouldReturnResumeTokenAndChangeStateWhenSystemWasRequestedToSuspended() |
void |
shouldShutdownSystemWhenRequestedToDoSo() |
static void |
startMasterTenant() |
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic static void startMasterTenant()
public void shouldBeInRunningStateWhenThereAreNoThreads()
public void shouldBeInRunningStateWhenThereAreRunning()
public void shouldReportThreadAsARootThreadWhenItsParentIsGone()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldReturnResumeTokenAndChangeStateWhenSystemWasRequestedToSuspended()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldResumeSystemAfterSuspension()
throws java.lang.InterruptedException,
ResumeTokenVerificationFailed
java.lang.InterruptedExceptionResumeTokenVerificationFailedpublic void shouldFailWhenResumingWithInvalidToken()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldResumeSystemWhenWaitingForSuspensions()
throws java.lang.InterruptedException,
ResumeTokenVerificationFailed
java.lang.InterruptedExceptionResumeTokenVerificationFailedpublic void shouldShutdownSystemWhenRequestedToDoSo()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionCopyright © 2018 SAP SE. All Rights Reserved.