Class TestEnvironment.Latch

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void assertClosed​(java.lang.String openErrorMsg)  
      void assertOpen​(java.lang.String closedErrorMsg)  
      void close()  
      void expectClose​(long timeoutMillis, java.lang.String notClosedErrorMsg)  
      void expectClose​(java.lang.String notClosedErrorMsg)  
      boolean isClosed()  
      void reOpen()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • reOpen

        public void reOpen()
      • close

        public void close()
      • assertClosed

        public void assertClosed​(java.lang.String openErrorMsg)
      • assertOpen

        public void assertOpen​(java.lang.String closedErrorMsg)
      • expectClose

        public void expectClose​(java.lang.String notClosedErrorMsg)
                         throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • expectClose

        public void expectClose​(long timeoutMillis,
                                java.lang.String notClosedErrorMsg)
                         throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException