de.tivano.junit
Class ParametrizedTestSuite.ParametrizedTestWrapper

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--de.tivano.junit.ParametrizedTestSuite.ParametrizedTestWrapper
All Implemented Interfaces:
junit.framework.Test
Enclosing class:
ParametrizedTestSuite

class ParametrizedTestSuite.ParametrizedTestWrapper
extends junit.framework.TestCase

Helper class for parametrizing a single test case. The test is parametrized immediately before calling the run(TestResult) method of the decorated test.


Field Summary
(package private)  junit.framework.Test WRAPPED
           
 
Constructor Summary
ParametrizedTestSuite.ParametrizedTestWrapper(junit.framework.Test test)
          Construct a parametrized wrapper for test.
 
Method Summary
 junit.framework.Test getTest()
           
 void run(junit.framework.TestResult result)
          Parametrize and run the test
 String toString()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, runBare, runTest, setName, setUp, tearDown
 
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, format
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WRAPPED

final junit.framework.Test WRAPPED
Constructor Detail

ParametrizedTestSuite.ParametrizedTestWrapper

public ParametrizedTestSuite.ParametrizedTestWrapper(junit.framework.Test test)
Construct a parametrized wrapper for test.
Parameters:
key - the key prefix for the associated test data set
Method Detail

getTest

public junit.framework.Test getTest()

run

public void run(junit.framework.TestResult result)
Parametrize and run the test
Overrides:
run in class junit.framework.TestCase

toString

public String toString()
Overrides:
toString in class junit.framework.TestCase


Copyright © 2002 Tivano Software GmbH. All Rights reserved.