Class CoreTestSupportUtils


  • public final class CoreTestSupportUtils
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.time.Duration READ_TIMEOUT  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int getFreePort()  
      static java.time.Duration getTimeout​(java.lang.String property, java.time.Duration defaultValue)  
      static org.apache.sshd.server.SshServer setupTestServer​(java.lang.Class<?> anchor)  
      static <S extends org.apache.sshd.server.SshServer>
      S
      setupTestServer​(S sshd, java.lang.Class<?> anchor)  
      • Methods inherited from class java.lang.Object

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

      • READ_TIMEOUT

        public static final java.time.Duration READ_TIMEOUT
    • Constructor Detail

      • CoreTestSupportUtils

        private CoreTestSupportUtils()
    • Method Detail

      • getFreePort

        public static int getFreePort()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setupTestServer

        public static org.apache.sshd.server.SshServer setupTestServer​(java.lang.Class<?> anchor)
      • setupTestServer

        public static <S extends org.apache.sshd.server.SshServer> S setupTestServer​(S sshd,
                                                                                     java.lang.Class<?> anchor)
      • getTimeout

        public static java.time.Duration getTimeout​(java.lang.String property,
                                                    java.time.Duration defaultValue)