|
||||||||||
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
public class WrappedSuiteTestDecorator
WrappedSuiteTestDecorator is a test decorator that wraps a test suite, or another wrapped suite, but provides the
same functionality for the TestDecorator.countTestCases()
and TestSuite.testAt(int)
methods as the underlying suite. It returns the values that these methods provide, to enable classes using decorated
tests to drill down to the underlying tests in the suite. That is to say that it indexes and reports the number of
distinct tests in the suite, not the number of test runs that would result from, for example, wrapping the suite in a
repeating decorator.
Responsibilities |
---|
Provide access to the underlying tests in a suite. |
Field Summary | |
---|---|
protected junit.framework.Test |
suite
Holds the test suite that this supplies access to. |
Fields inherited from class junit.extensions.TestDecorator |
---|
fTest |
Constructor Summary | |
---|---|
WrappedSuiteTestDecorator(junit.framework.TestSuite suite)
Creates a wrappred suite test decorator from a test suite. |
|
WrappedSuiteTestDecorator(WrappedSuiteTestDecorator suite)
Creates a wrapped suite test decorator from another one. |
Method Summary | |
---|---|
int |
countTestCases()
Returns the test count of the wrapped suite. |
Collection<junit.framework.Test> |
getAllUnderlyingTests()
Gets all the tests from the underlying test suite. |
junit.framework.Test |
testAt(int i)
Gets the ith test from the test suite. |
Methods inherited from class junit.extensions.TestDecorator |
---|
basicRun, getTest, run, toString |
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 |
Field Detail |
---|
protected junit.framework.Test suite
Constructor Detail |
---|
public WrappedSuiteTestDecorator(junit.framework.TestSuite suite)
suite
- The test suite.public WrappedSuiteTestDecorator(WrappedSuiteTestDecorator suite)
suite
- The test suite.Method Detail |
---|
public int countTestCases()
countTestCases
in interface junit.framework.Test
countTestCases
in class junit.extensions.TestDecorator
public junit.framework.Test testAt(int i)
i
- The index of the test within the suite to get.
public Collection<junit.framework.Test> getAllUnderlyingTests()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |