public class QpidTestCase
extends junit.framework.TestCase
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_QUALIFIED_TEST_NAME |
static String |
QPID_HOME |
static String |
TEST_PROFILES_DIR |
static String |
TEST_RESOURCES_DIR |
static String |
TMP_FOLDER |
| Constructor and Description |
|---|
QpidTestCase() |
| Modifier and Type | Method and Description |
|---|---|
int |
findFreePort() |
protected String |
getClassQualifiedTestName() |
static QpidTestCase |
getCurrentInstance() |
int |
getNextAvailable(int fromPort)
Gets the next available port starting at a port.
|
protected String |
getTestName() |
String |
getTestProfileVirtualHostNodeBlueprint() |
String |
getTestProfileVirtualHostNodeType() |
void |
registerTearDown(Runnable runnable) |
protected void |
revertTestSystemProperties()
Restore the System property values that were set by this test run.
|
void |
run(junit.framework.TestResult testResult) |
protected void |
runTest() |
protected void |
setTestSystemProperty(String property,
String value)
Set a System property for duration of this test only.
|
protected void |
setUp() |
protected void |
tearDown() |
assertEquals, 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, runBare, setName, toStringpublic static final String QPID_HOME
public static final String TEST_PROFILES_DIR
public static final String TEST_RESOURCES_DIR
public static final String TMP_FOLDER
public static final String CLASS_QUALIFIED_TEST_NAME
public void run(junit.framework.TestResult testResult)
run in interface junit.framework.Testrun in class junit.framework.TestCaseprotected void runTest()
throws Throwable
runTest in class junit.framework.TestCaseThrowablepublic String getTestProfileVirtualHostNodeType()
protected String getClassQualifiedTestName()
protected String getTestName()
public String getTestProfileVirtualHostNodeBlueprint()
public void registerTearDown(Runnable runnable)
public static QpidTestCase getCurrentInstance()
public int getNextAvailable(int fromPort)
fromPort - the port to scan for availabilityNoSuchElementException - if there are no ports availablepublic int findFreePort()
protected void setTestSystemProperty(String property, String value)
property - The property to setvalue - the value to set it to, if null, the property will be clearedprotected void revertTestSystemProperties()
protected void setUp()
throws Exception
setUp in class junit.framework.TestCaseExceptionCopyright © 2006–2016 The Apache Software Foundation. All rights reserved.