|[eclipselink-dev] New JPA 2.0 tests|
When we are adding new tests for the JPA 2.0 features can we ensure we use compareObjects to validate the state of objects for any insert of update tests. The compare should be done with a new EntityManager after the commit, and after a clear of the cache. This verifies that what was actually committed matches the object that was written. Otherwise we are just verifying that no exceptions occurred, not that the object was correctly written.
Back to the top