JTestCase 4.0.0

Jice Integration

Jice is an (excellent) lightweight dependency injection framework now embedded into JTestCase.
Using Jice it is possible to seamlessly inject into JTestCase arbitrary graphs of Java objects such as :

  • Collections Objects (Vector,HashMap,ArrayList,...)
  • JavaBeans
  • Arbitrary Graph of Java Objects (see here)

JTestCase Presentation

JTestCase is a 100% pure Java, open-source microframework that helps in separating test case data from test case units.

JTestCase embodies the concept of a TestCase. A TestCase can be seen as combination of one (or more) assert for a specific set of input parameters.
The introduction section explains this concept with further details.

A moderately complex java projects may comprise hundreds of junit test case.
JTestCase helps you organize your test cases in a rationale and efficient way.

To achieve this goal JTestCase provides:

  • A propetary XML format to define your test cases in an abstract way.
  • Easy-to-use API to retrieve data from XML file and to do assertion.

Please read the getting started section to get started using JTestCase.

Note that although the following examples show JTestCase used together with junit, JTestCase has no dependence on junit itself.

JTestCase 4.0.0

The most important feature of this release is Jice integration.
Please read the site documentation on the sidebar.

JTestCase 3.1.0

JTestCase 3.1.0 aims to simplify the use of JTestCase while relinquishing to none of the JTestCase previous features.

JTestCase 3.1.0 is a milestone release. It introduces a limited, but significant, number of changes in the API. The main enhancement areas are:

  • New API Features
  • Much Improved Performance
  • Better Exception Handling
  • New test-case xml-format Definition
  • Enhanced Documentation

Please refer to release notes for a complete reference.
The getting started section gives you a quick overview of the new API.

As stated before, JTestCase 3.0.0 and previous users will find some changes in the API.
Porting your test cases to the new version should be straightforward in most cases, and will bring you the benefits of the new features.

Old package declaration New package declaration
net.wangs.jtestcase.JTestCase org.jtestcase.JTestCase
net.wangs.jtestcase.JTestCaseException org.jtestcase.JTestCaseException
net.wangs.jtestcase.TestCaseInstance org.jtestcase.TestCaseInstance
net.wangs.jtestcase.MultiKeyedHashtable org.jtestcase.util.MultiKeyedHashtable