Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISPN-1123 Fix and re-enable TransactionXaAdapterTmIntegrationTest #5352

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -32,7 +32,7 @@
* @author Mircea.Markus@jboss.com
* @since 4.2
*/
@Test(testName = "tx.TransactionXaAdapterTmIntegrationTest", groups = "unstable", description = "Disabled due to instability - see ISPN-1123 -- original group: unit")
@Test(groups = "unit", testName = "tx.TransactionXaAdapterTmIntegrationTest")
public class TransactionXaAdapterTmIntegrationTest {
private LocalXaTransaction localTx;
private TransactionXaAdapter xaAdapter;
Expand All @@ -45,8 +45,11 @@ public void setUp() throws XAException {
Cache mockCache = mock(Cache.class);
Configuration configuration = new ConfigurationBuilder().build();
XaTransactionTable txTable = new XaTransactionTable();
txCoordinator = new TransactionCoordinator();


txTable.initialize(null, configuration, null, null,
null, null, null, null, mockCache, null, null, null, null);
txCoordinator, null, null, null, mockCache, null, null, null, null);
txTable.start();
txTable.startXidMapping();
TransactionFactory gtf = new TransactionFactory();
Expand All @@ -59,7 +62,7 @@ public void setUp() throws XAException {
InvocationContextFactory icf = new TransactionalInvocationContextFactory();
CommandsFactory commandsFactory = mock(CommandsFactory.class);
InterceptorChain invoker = mock(InterceptorChain.class);
txCoordinator = new TransactionCoordinator();

txCoordinator.init(commandsFactory, icf, invoker, txTable, null, configuration);
xaAdapter = new TransactionXaAdapter(localTx, txTable);

Expand Down