public class JBossWSTestHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JBossWSTestHelper.BaseDeployment<T extends org.jboss.shrinkwrap.api.Archive<T>> |
static class |
JBossWSTestHelper.JarDeployment |
Constructor and Description |
---|
JBossWSTestHelper() |
Modifier and Type | Method and Description |
---|---|
static File |
assertArchiveDirExists() |
static Process |
deployAppclient(String archive,
OutputStream appclientOS,
String... appclientArgs)
Deploy the given archive to the appclient.
|
static File |
getArchiveFile(String archive)
Try to discover the File for the deployment archive
|
static URL |
getArchiveURL(String archive)
Try to discover the URL for the deployment archive
|
protected static int |
getContainerPortOffset(String groupQualifier,
String containerQualifier) |
static String |
getIntegrationTarget() |
static File |
getResourceFile(String resource)
Try to discover the File for the test resource
|
static URL |
getResourceURL(String resource)
Try to discover the URL for the test resource
|
static int |
getSecureServerPort(String groupQualifier,
String containerQualifier) |
static MBeanServerConnection |
getServer() |
static MBeanServerConnection |
getServer(String groupQualifier,
String containerQualifier) |
static String |
getServerHost()
Get the JBoss server host from system property "jboss.bind.address"
This defaults to "localhost"
|
static int |
getServerPort() |
static int |
getServerPort(String groupQualifier,
String containerQualifier) |
static String |
getTestArchiveDir() |
static String |
getTestPassword() |
static String |
getTestResourcesDir() |
static String |
getTestUsername() |
static boolean |
isIntegrationCXF() |
static boolean |
isTargetWildFly10() |
static boolean |
isTargetWildFly9() |
static void |
undeployAppclient(String archive,
boolean awaitShutdown)
Undeploy the given archive from the appclient
Archive name is always in form archive.ear#appclient.jar
|
static void |
writeToFile(org.jboss.shrinkwrap.api.Archive archive) |
static String |
writeToFile(JBossWSTestHelper.BaseDeployment<?>... deps) |
public static Process deployAppclient(String archive, OutputStream appclientOS, String... appclientArgs) throws Exception
Exception
public static void undeployAppclient(String archive, boolean awaitShutdown) throws Exception
Exception
public static boolean isTargetWildFly9()
public static boolean isTargetWildFly10()
public static boolean isIntegrationCXF()
public static String getServerHost()
public static int getServerPort()
public static int getSecureServerPort(String groupQualifier, String containerQualifier)
protected static int getContainerPortOffset(String groupQualifier, String containerQualifier)
public static MBeanServerConnection getServer()
public static MBeanServerConnection getServer(String groupQualifier, String containerQualifier)
public static String getIntegrationTarget()
public static URL getArchiveURL(String archive) throws MalformedURLException
MalformedURLException
public static File getArchiveFile(String archive)
public static URL getResourceURL(String resource) throws MalformedURLException
MalformedURLException
public static File getResourceFile(String resource)
public static String getTestArchiveDir()
public static String getTestResourcesDir()
public static String getTestUsername()
public static String getTestPassword()
public static void writeToFile(org.jboss.shrinkwrap.api.Archive archive)
public static File assertArchiveDirExists()
public static String writeToFile(JBossWSTestHelper.BaseDeployment<?>... deps)
Copyright © 2019 JBoss, by Red Hat. All rights reserved.