A12.15-1 through A12.15-14 can all use the same test class, using different test methods.
A private class that implements the life cycle listener interface is registered with the persistence manager and keeps track of the life cycle event callbacks and the instance parameters of the callbacks.
The test method registers the life cycle event listener, makes persistence manager calls and checks that the life cycle event listener was called. Finally, the listener is unregistered.
Description
A12.15-1 through A12.15-14 can all use the same test class, using different test methods.
A private class that implements the life cycle listener interface is registered with the persistence manager and keeps track of the life cycle event callbacks and the instance parameters of the callbacks.
The test method registers the life cycle event listener, makes persistence manager calls and checks that the life cycle event listener was called. Finally, the listener is unregistered.