Java Reference
In-Depth Information
TestCase
<<abstract >>
JDOPersistence
Tests
<<abstract>>
JDOMappingTests
<<abstract>>
JDOSchemaTests
assertClassMapping()
assertApplicationIdentity()
assertAllFieldsMapped()
assertIdField()
assertField()
...
assertDatabaseSchema()
doInTransaction()
makePersistent()
getObjectById()
deletePersistent()
...
<<interface>>
JDOMappingStrategy
assertClassMapping()
assertApplicationIdentity()
assertAllFieldsMapped()
assertIdField()
assertField()
assertDatabaseSchema()
...
Figure 5.2
The ORMUnit JDO classes
Overview of JDOMappingTests
JDOMappingTests is a base class for writing tests that verify the ORM defined by
the XML metadata. It defines methods for making assertions about the mapping,
including the following:
assertClassMapping() : Verifies that the class is mapped to the specified
table
assertApplicationIdentity() : Verifies that the class uses application
identity
assertAllFieldsMapped() : Verifies that all the fields of a class are mapped
assertIdField() : Verifies that the class's ID field is mapped to the speci-
fied column
assertField() : Verifies that a field is mapped to the specified columns
 
 
 
 
 
 
Search WWH ::




Custom Search