net.sourceforge.groboutils.junit.v1.parser |
net.sourceforge.groboutils.junit.v1.parser
The GroboUtils JUnit Extention: classes to help in the creation and
execution of JUnit tests.
Overview
The TestClassParser combined with the TestClassCreator
contains much of the logic that the JUnit class TestSuite contains.
However, the parser is designed with extensibility in mind. Its sole purpose
is to parse out test methods and create test instances.
The TestClassParser knows how to extract the test methods from a
test class, while TestClassCreator knows how to create test instances
from the parsed test class.
In order to support various means of instantiating test instances from a
test class, the TestClassCreator depends upon instances of
ITestCreator to perform the actual creation of the tests. The
validation and TestSuite compilation is performed by the
TestClassCreator.
|
Java Source File Name | Type | Comment |
DelegateTestCreator.java | Class | Allows for an ordered set of TestCreator instances to be queried for
generating instances. |
DelegateTestCreatorUTest.java | Class | Tests the DelegateTestCreator class. |
IftcOrigCreator.java | Class | Creates Interface test cases based on the original JUnit construction
mechanism. |
ITestCreator.java | Interface | Interface that can create test objects based on a class and a method from
within that class, using a specific method. |
ITestCreatorUTestI.java | Class | Tests the ITestCreator interface. |
JUnit3_8Creator.java | Class | Emulates the JUnit 3.8+ construction mechanism. |
JUnitOrigCreator.java | Class | Emulates the construction mechanism for all JUnit versions. |
TestClassCreator.java | Class | Creates Test instances based on a TestClassParser.
Ripped the test method discovery code out of junit.framework.TestSuite to
allow it to have usable logic.
This is not covered under the GroboUtils license, but rather under the
JUnit license (IBM Public License). |
TestClassCreatorUTest.java | Class | Tests the TestClassCreator class. |
TestClassParser.java | Class | Parses Test classes to discover the usable test methods.
Ripped the test method discovery code out of junit.framework.TestSuite to
allow it to have usable logic.
This is not covered under the GroboUtils license, but rather under the
JUnit license (IBM Public License). |
TestClassParserUTest.java | Class | Tests the TestClassParser class. |