Skip to content

Commit

Permalink
Merge pull request #719 from tadamski/byteman-cleaning
Browse files Browse the repository at this point in the history
BytemanTransactionTestCase: move from old javax directory to all byte…
  • Loading branch information
tadamski authored Jul 23, 2024
2 parents 2c66997 + 8239aca commit 4ada375
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
import com.arjuna.ats.jta.common.JTAEnvironmentBean;
import com.arjuna.ats.jta.common.jtaPropertyManager;
import com.arjuna.common.internal.util.propertyservice.BeanPopulator;
import jakarta.transaction.TransactionManager;
import jakarta.transaction.TransactionSynchronizationRegistry;
import jakarta.transaction.UserTransaction;
import org.jboss.byteman.contrib.bmunit.BMScript;
import org.jboss.byteman.contrib.bmunit.BMUnitRunner;
import org.jboss.ejb.client.test.AbstractEJBClientTestCase;
Expand All @@ -40,9 +43,6 @@
import org.wildfly.transaction.client.*;
import org.wildfly.transaction.client.provider.jboss.JBossLocalTransactionProvider;

import javax.transaction.TransactionManager;
import javax.transaction.TransactionSynchronizationRegistry;
import javax.transaction.UserTransaction;
import java.io.File;
import java.util.HashMap;
import java.util.HashSet;
Expand Down Expand Up @@ -72,12 +72,10 @@ public static void beforeClass() throws Exception {
jtaEnvironmentBean.setTransactionManagerClassName(TransactionManagerImple.class.getName());
jtaEnvironmentBean.setTransactionSynchronizationRegistryClassName(TransactionSynchronizationRegistryImple.class.getName());
final TransactionManager narayanaTm = jtaEnvironmentBean.getTransactionManager();
final TransactionSynchronizationRegistry narayanaTsr = jtaEnvironmentBean.getTransactionSynchronizationRegistry();
final XATerminator xat = new XATerminator();
final JBossLocalTransactionProvider.Builder builder = JBossLocalTransactionProvider.builder();
builder.setXATerminator(xat).setExtendedJBossXATerminator(xat);
builder.setExtendedJBossXATerminator(xat);
builder.setTransactionManager(narayanaTm);
builder.setTransactionSynchronizationRegistry(narayanaTsr);
builder.setXAResourceRecoveryRegistry(new XAResourceRecoveryRegistry() {
@Override
public void addXAResourceRecovery(XAResourceRecovery xaResourceRecovery) {
Expand Down

0 comments on commit 4ada375

Please sign in to comment.