}
public static void assertPrepared(int count, DummyTransaction...tx) throws XAException {
for (DummyTransaction dt : tx) {
TransactionXaAdapter xaRes = (TransactionXaAdapter) dt.firstEnlistedResource();
assertEquals(count, xaRes.recover(XAResource.TMSTARTRSCAN | XAResource.TMENDRSCAN).length);
}
}
public static RecoveryManagerImpl rm(Cache cache) {
return (RecoveryManagerImpl) TestingUtil.extractComponentRegistry(cache).getComponent(RecoveryManager.class);