use of org.jboss.narayana.rest.integration.test.common.TestParticipantDeserializer in project narayana by jbosstm.
the class RecoveryManagerTestCase method testRecoveryWithoutDeserializer.
@Test
public void testRecoveryWithoutDeserializer() {
final String participantId = new Uid().toString();
final LoggingParticipant loggingParticipantBefore = new LoggingParticipant(new Prepared());
loggingParticipantBefore.commit();
final ParticipantInformation participantInformationBefore = new ParticipantInformation(participantId, APPLICATION_ID + "1", "", loggingParticipantBefore, TxStatus.TransactionCommitted.name());
ParticipantsContainer.getInstance().clear();
ParticipantsManagerFactory.getInstance().setBaseUrl("");
RecoveryManager.getInstance().persistParticipantInformation(participantInformationBefore);
RecoveryManager.getInstance().registerDeserializer(APPLICATION_ID + "2", new TestParticipantDeserializer());
final ParticipantInformation participantInformationAfter = ParticipantsContainer.getInstance().getParticipantInformation(participantId);
Assert.assertNull(participantInformationAfter);
}
Aggregations