|
[
Permlink
| « Hide
]
Craig Russell added a comment - 12/Oct/05 04:11 AM
Here are the first few tests plus the test framework. The callbacks for clear, create, and delete are implemented.
As part of this set of test cases, we need to integrate three pieces of test code, all of which are intimately connected and not used elsewhere:
1. The test case known to JUnit 2. The listener that is registered with the persistence manager 3. The persistence capable (and detachable) class I propose to combine all three parts of code into the test case itself. This means that the listener and persistence capable classes are static inner classes of the test case. This works well for these tests, because there is only one .java file that contains all of the functionality needed by the test case. Of course, each persistence capable class needs to be mapped to the database, and I propose to create a table, an entry in each of the the two .jdo files, and an entry in each of the two .orm files for each of these. It would be slightly more convenient to have a common abstract base persistence capable class that is extended by each purpose-built persistence capable class, but as we are not testing inheritance here I propose to use a class per usage with no inheritance. 325833 adds test cases, .jdo files, .orm files, and schema files.
325837 adds tests to alltests.conf |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||