Mockito.verify(xaTerminator).commit(tc.getXid(), false);
}
@Test public void testGlobalOnePhaseCommit_force_prepare() throws Exception {
server.start(THREAD1, XID1, XAResource.TMNOFLAGS, 100,false);
TransactionContext tc = server.getOrCreateTransactionContext(THREAD1);
server.end(THREAD1, XID1, XAResource.TMSUCCESS, false);
server.commit(THREAD1, XID1, true, false);
// since there are two sources the commit is not single phase
Mockito.verify(xaTerminator).prepare(tc.getXid());
Mockito.verify(xaTerminator).commit(tc.getXid(), false);
}