Buggy code:
public class TestExceptionsFromCallbacks extends SingleEMFTestCase { public static boolean testRunning = false ; @ Override public void setUp ( ) { Set needEnhancement = new HashSet ( ) ; needEnhancement . add ( "testPostUpdateExceptionDuringFlushWithNewInstance" ) ; needEnhancement . add ( "testPreUpdateExceptionDuringFlushWithExistingFlushedInstance" ) ; needEnhancement . add ( "testPreUpdateExceptionDuringCommitWithExistingFlushedInstance" ) ; needEnhancement . add ( "testPostUpdateExceptionDuringFlushWithExistingFlushedInstance" ) ; needEnhancement . add ( "testPostUpdateExceptionDuringCommitWithExistingFlushedInstance" ) ; if ( ( ! ( PersistenceCapable . class . isAssignableFrom ( ExceptionsFromCallbacksEntity . class ) ) ) && ( needEnhancement . contains ( getName ( ) ) ) ) fail ( "this<seq2seq4repair_space>test<seq2seq4repair_space>method<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>work<seq2seq4repair_space>without<seq2seq4repair_space>enhancement" ) ; <START_BUG> setUp ( ExceptionsFromCallbacksEntity . class , CLEAR_TABLES , "openjpa.Log" , "SQL=TRACE" ) ; <END_BUG> TestExceptionsFromCallbacks . testRunning = true ; } @ Override public void tearDown ( ) throws Exception { } public void testPrePersistException ( ) { } public void testPrePersistExceptionOnMerge ( ) { } public void testPostPersistExceptionDuringFlush ( ) { } private void mutateAndFlush ( EntityManager em , ExceptionsFromCallbacksEntity o ) { } private void flush ( EntityManager em ) { } public void testPostPersistExceptionDuringCommit ( ) { } private void mutateAndCommit ( EntityManager em , ExceptionsFromCallbacksEntity o ) { } private void commit ( EntityManager em ) { } public void testPrePersistExceptionDuringFlushWithNewFlushedInstance ( ) { } public void testPrePersistExceptionDuringCommitWithNewFlushedInstance ( ) { } public void testPostPersistExceptionDuringFlushWithNewFlushedInstance ( ) { } public void testPostPersistExceptionDuringCommitWithNewFlushedInstance ( ) { } public void testPreUpdateExceptionWithNewInstance ( ) { } public void testPostUpdateExceptionDuringFlushWithNewInstance ( ) { } public void testPostUpdateExceptionDuringCommitWithNewInstance ( ) { } public void testPreUpdateExceptionDuringFlushWithNewFlushedInstance ( ) { } public void testPreUpdateExceptionDuringCommitWithNewFlushedInstance ( ) { } public void testPostUpdateExceptionDuringFlushWithNewFlushedInstance ( ) { } public void testPostUpdateExceptionDuringCommitWithNewFlushedInstance ( ) { } public void testPreUpdateExceptionDuringFlushWithExistingInstance ( ) { } private Object insert ( String s ) { } public void testPreUpdateExceptionDuringCommitWithExistingInstance ( ) { } public void testPostUpdateExceptionDuringFlushWithExistingInstance ( ) { } public void testPostUpdateExceptionDuringCommitWithExistingInstance ( ) { } public void testPreUpdateExceptionDuringFlushWithExistingFlushedInstance ( ) { } public void testPreUpdateExceptionDuringCommitWithExistingFlushedInstance ( ) { } public void testPostUpdateExceptionDuringFlushWithExistingFlushedInstance ( ) { } public void testPostUpdateExceptionDuringCommitWithExistingFlushedInstance ( ) { } public void testPostLoadException ( ) { } public void testPreDeleteException ( ) { } public void testPostDeleteExceptionDuringFlush ( ) { } public void testPostDeleteExceptionDuringCommit ( ) { } public void testPreDeleteExceptionDoubleDelete ( ) { } public void testPostDeleteExceptionDuringFlushDoubleDelete ( ) { } public void testPostDeleteExceptionDuringCommitDoubleDelete ( ) { } }

Fix:
setUp ( ExceptionsFromCallbacksEntity . class , CLEAR_TABLES ) ;