Use in Java
JTestCase provides an easy to use API to access the test data defined in the JTestCase XML file.
We'll show JTestCase use in the content of the allegedly the actual de-facto standard for test casing in java, JUnit.
The process of using jtestcase in junit comprises the following aspects:
-
Getting Test Data
Describes how to initilize a JTestCase test and access the test data defined in the companion xml file.
-
Doing Assertions
Describes how to do assertions with the help of JTestCase assertion facility
-
Data Types
Describes how the data types defined in the xml file are traslated in java class instances and vice versa.
ForTestCase utility can help you speed up of jtestcase implemetations:
-
ForTestCase
Describes the use of ForTestCase.java (see Javadoc)