|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface NonTransactional
An annotation that disables the default transaction management behavior for JUnit test methods.
ActiveObjectsJUnitRunner normally surrounds each test method execution in a transaction,
which is then rolled back so that the next test starts with a clean database state. This will
not work if the test does its own transaction management and commits changes. In that case,
mark the test method with @NonTransactional; this makes the test runner not create a transaction,
but instead completely drop and recreate the database after executing the test.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||