|
||||||||||
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.junit.extensions.ParameterVariationTestDecorator
public class ParameterVariationTestDecorator
ParameterVariationTestDecorator is a test decorator that runs a test repeatedly under all permutations of its test parameters. a set of integer parameters and a repeat count are specified, then each test is run for the repeat count at each integer parameter.
Responsibilities | Collaborations |
---|---|
Repeat a test for each of a set of integer parameters. | TKTestResult
|
Repeat a test multiple times. | |
Field Summary |
---|
Fields inherited from class org.apache.qpid.junit.extensions.WrappedSuiteTestDecorator |
---|
suite |
Fields inherited from class junit.extensions.TestDecorator |
---|
fTest |
Constructor Summary | |
---|---|
ParameterVariationTestDecorator(WrappedSuiteTestDecorator test,
int[] params,
int repeat)
Creates an asymptotic test decorator that wraps a test with repeats and a set of integer 'size' paramters to call the test with. |
|
ParameterVariationTestDecorator(WrappedSuiteTestDecorator test,
int start,
int end,
int step,
int repeat)
Creates a new AsymptoticTestDecorator object. |
Method Summary | |
---|---|
void |
run(junit.framework.TestResult result)
Runs the test repeatedly for each value of the int parameter specified and for the correct number of test repeats. |
String |
toString()
Prints out the name of this test with the string "(parameterized)" appended onto it 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 ParameterVariationTestDecorator(WrappedSuiteTestDecorator test, int[] params, int repeat)
test
- The test to wrap.params
- The integer 'size' parameters.repeat
- The number of times to repeat the test.public ParameterVariationTestDecorator(WrappedSuiteTestDecorator test, int start, int end, int step, int repeat)
test
- The test to decorate.start
- The starting asymptotic integer parameter value.end
- The ending asymptotic integer parameter value.step
- The increment size to move from the start to end values by.repeat
- The number of times to repeat the test at each step of the cycle.Method Detail |
---|
public void run(junit.framework.TestResult result)
run
in interface junit.framework.Test
run
in class junit.extensions.TestDecorator
result
- The test result object that the tests will indicate their results to. This is also used
to pass the int parameter from this class to the decorated test class.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 |