public abstract class JBossWSTest
extends junit.framework.TestCase
Modifier and Type | Field and Description |
---|---|
static String |
CXF_TESTS_GROUP_QUALIFIER |
protected static org.jboss.logging.Logger |
log |
static String |
SHARED_TESTS_GROUP_QUALIFIER |
static String |
SYSPROP_COPY_JOB_TIMEOUT |
org.junit.rules.TestRule |
watcher |
Constructor and Description |
---|
JBossWSTest() |
JBossWSTest(String name) |
Modifier and Type | Method and Description |
---|---|
static void |
assertEquals(Element expElement,
Element wasElement) |
static void |
assertEquals(Element expElement,
Element wasElement,
boolean ignoreWhitespace) |
static void |
assertEquals(Object exp,
Object was) |
static File |
createResourceFile(File parent,
String filename) |
static File |
createResourceFile(String filename) |
static void |
executeCommand(String command)
Execute command in separate process.
|
static void |
executeCommand(String command,
OutputStream os)
Execute command in separate process, copy process input to os.
|
static void |
executeCommand(String command,
OutputStream os,
String message)
Execute command in separate process, copy process input to os.
|
static void |
executeCommand(String command,
OutputStream os,
String message,
Map<String,String> env)
Execute command in separate process, copy process input to os.
|
static void |
executeCommand(String command,
String message)
Execute command in separate process.
|
static File |
getArchiveFile(String archive) |
static URL |
getArchiveURL(String archive) |
protected String |
getClientJarPaths() |
static File |
getResourceFile(String resource) |
static URL |
getResourceURL(String resource) |
static int |
getSecureServerPort(String groupQualifier,
String containerQualifier) |
static MBeanServerConnection |
getServer() |
static String |
getServerHost() |
static InitialContext |
getServerInitialContext()
Get the server remote env context
Every test calling this method have to ensure InitialContext.close()
method is called at end of test to clean up all associated caches.
|
static InitialContext |
getServerInitialContext(String groupQualifier,
String containerQualifier) |
static int |
getServerPort() |
static int |
getServerPort(String groupQualifier,
String containerQualifier) |
static boolean |
isIntegrationCXF() |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
protected static org.jboss.logging.Logger log
public static final String SYSPROP_COPY_JOB_TIMEOUT
public static final String CXF_TESTS_GROUP_QUALIFIER
public static final String SHARED_TESTS_GROUP_QUALIFIER
public org.junit.rules.TestRule watcher
public JBossWSTest()
public JBossWSTest(String name)
public static void executeCommand(String command) throws IOException
command
- command to executeIOException
- if I/O error occurspublic static void executeCommand(String command, String message) throws IOException
command
- command to executemessage
- message to display if assertion failsIOException
- if I/O error occurspublic static void executeCommand(String command, OutputStream os) throws IOException
command
- command to executeos
- output stream to copy process input to. If null, System.out will be usedIOException
- if I/O error occurspublic static void executeCommand(String command, OutputStream os, String message) throws IOException
command
- command to executeos
- output stream to copy process input to. If null, System.out will be usedmessage
- message to display if assertion failsIOException
- if I/O error occurspublic static void executeCommand(String command, OutputStream os, String message, Map<String,String> env) throws IOException
command
- command to executeos
- output stream to copy process input to. If null, System.out will be usedmessage
- message to display if assertion failsenv
- environmentIOException
- if I/O error occurspublic static MBeanServerConnection getServer() throws NamingException
NamingException
public static boolean isIntegrationCXF()
public static String getServerHost()
public static int getServerPort()
public static int getSecureServerPort(String groupQualifier, String containerQualifier)
public static URL getArchiveURL(String archive) throws MalformedURLException
MalformedURLException
public static URL getResourceURL(String resource) throws MalformedURLException
MalformedURLException
public static InitialContext getServerInitialContext() throws NamingException, IOException
NamingException
IOException
public static InitialContext getServerInitialContext(String groupQualifier, String containerQualifier) throws NamingException, IOException
NamingException
IOException
public static void assertEquals(Element expElement, Element wasElement, boolean ignoreWhitespace)
protected String getClientJarPaths()
Copyright © 2017 JBoss, by Red Hat. All rights reserved.