|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.extensions.TestDecorator
org.apache.qpid.junit.extensions.WrappedSuiteTestDecorator
org.apache.qpid.test.framework.qpid.InVMBrokerDecorator
public class InVMBrokerDecorator
InVMBrokerDecorator is a test decorator, that is activated when running tests against an in-vm broker only. Its
purpose is to automatically create, and close and delete an in-vm broker, during the set-up and tear-down of
each test case. This decorator may only be used in conjunction with tests that extend FrameworkBaseCase
.
Responsibilities | Collaborations |
---|---|
Create/Destroy an in-vm broker on every test run. |
Field Summary |
---|
Fields inherited from class org.apache.qpid.junit.extensions.WrappedSuiteTestDecorator |
---|
suite |
Fields inherited from class junit.extensions.TestDecorator |
---|
fTest |
Constructor Summary | |
---|---|
InVMBrokerDecorator(org.apache.qpid.junit.extensions.WrappedSuiteTestDecorator test)
Creates a wrapped test suite decorator from another one. |
Method Summary | |
---|---|
void |
run(junit.framework.TestResult testResult)
Runs the tests with in-vm broker creation and clean-up added to the tests task stack. |
String |
toString()
Prints the name of the test for debugging purposes. |
Methods inherited from class org.apache.qpid.junit.extensions.WrappedSuiteTestDecorator |
---|
countTestCases, getAllUnderlyingTests, testAt |
Methods inherited from class junit.extensions.TestDecorator |
---|
basicRun, getTest |
Methods inherited from class junit.framework.Assert |
---|
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, fail, fail, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InVMBrokerDecorator(org.apache.qpid.junit.extensions.WrappedSuiteTestDecorator test)
test
- The test suite.Method Detail |
---|
public void run(junit.framework.TestResult testResult)
run
in interface junit.framework.Test
run
in class junit.extensions.TestDecorator
testResult
- The the results object to monitor the test results with.public String toString()
toString
in class junit.extensions.TestDecorator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |