Class DefaultSuspendResumeServiceUnitTest

    • Constructor Detail

      • DefaultSuspendResumeServiceUnitTest

        public DefaultSuspendResumeServiceUnitTest()
    • 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
      • shouldFailWhenResumingWithInvalidToken

        public void shouldFailWhenResumingWithInvalidToken()
                                                    throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • shouldShutdownSystemWhenRequestedToDoSo

        public void shouldShutdownSystemWhenRequestedToDoSo()
                                                     throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException