Class CoreTestSupportUtils
- java.lang.Object
-
- org.apache.maven.scm.provider.git.CoreTestSupportUtils
-
public final class CoreTestSupportUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.time.DurationREAD_TIMEOUT
-
Constructor Summary
Constructors Modifier Constructor Description privateCoreTestSupportUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetFreePort()static java.time.DurationgetTimeout(java.lang.String property, java.time.Duration defaultValue)static org.apache.sshd.server.SshServersetupTestServer(java.lang.Class<?> anchor)static <S extends org.apache.sshd.server.SshServer>
SsetupTestServer(S sshd, java.lang.Class<?> anchor)
-
-
-
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)
-
-