This is an automated email from the ASF dual-hosted git repository.

pcristof pushed a commit to branch OPENJPA-2940
in repository https://gitbox.apache.org/repos/asf/openjpa.git

commit d0bf9c23e1fd43fae530837315cb2ed940f7c2e9
Author: Paulo Cristovão de Araújo Silva Filho <pcris...@gmail.com>
AuthorDate: Thu Jul 3 17:56:25 2025 -0300

    [OPENJPA-2940][WIP] Reverting changes that broke tests
---
 .../java/org/apache/openjpa/kernel/AbstractBrokerSerializationTest.java | 2 +-
 .../org/apache/openjpa/kernel/TestBrokerFactoryListenerRegistry.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/kernel/AbstractBrokerSerializationTest.java
 
b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/kernel/AbstractBrokerSerializationTest.java
index 27d985848..48b5d1136 100644
--- 
a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/kernel/AbstractBrokerSerializationTest.java
+++ 
b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/kernel/AbstractBrokerSerializationTest.java
@@ -309,7 +309,7 @@ public abstract class AbstractBrokerSerializationTest<T>
         TxListener txListener = new TxListener();
         emf.addTransactionListener(txListener);
         LifeListener lifeListener = new LifeListener();
-        emf.addLifecycleListener(lifeListener);
+        emf.addLifecycleListener(lifeListener, null);
 
         OpenJPAEntityManager em = emf.createEntityManager();
         T t = em.find(getManagedType(), id);
diff --git 
a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/kernel/TestBrokerFactoryListenerRegistry.java
 
b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/kernel/TestBrokerFactoryListenerRegistry.java
index 7e688922d..a803f7dc0 100644
--- 
a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/kernel/TestBrokerFactoryListenerRegistry.java
+++ 
b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/kernel/TestBrokerFactoryListenerRegistry.java
@@ -47,7 +47,7 @@ public class TestBrokerFactoryListenerRegistry
             public void beforePersist(LifecycleEvent event) {
                 persistCount++;
             }
-        });
+        }, null);
         emf.addTransactionListener(new AbstractTransactionListener() {
             @Override
             public void afterBegin(TransactionEvent event) {

Reply via email to