use of com.helger.phoss.smp.domain.pmigration.SMPParticipantMigration in project phoss-smp by phax.
the class SMPParticipantMigrationManagerMongoDB method createOutboundParticipantMigration.
@Nonnull
public ISMPParticipantMigration createOutboundParticipantMigration(@Nonnull final IParticipantIdentifier aParticipantID, @Nonnull @Nonempty final String sMigrationKey) {
final SMPParticipantMigration aSMPParticipantMigration = SMPParticipantMigration.createOutbound(aParticipantID, sMigrationKey);
_createParticipantMigration(aSMPParticipantMigration);
return aSMPParticipantMigration;
}
use of com.helger.phoss.smp.domain.pmigration.SMPParticipantMigration in project phoss-smp by phax.
the class SMPParticipantMigrationManagerMongoDBTest method testConversion.
@Test
public void testConversion() {
final SMPParticipantMigration a = SMPParticipantMigration.createInbound(new SimpleParticipantIdentifier("iso6523-actorid-upis", "9901:test"), "abc123");
final Document d = SMPParticipantMigrationManagerMongoDB.toBson(a);
assertNotNull(d);
final SMPParticipantMigration a2 = SMPParticipantMigrationManagerMongoDB.toDomain(d);
assertNotNull(a2);
assertEquals(a, a2);
assertEquals(d, SMPParticipantMigrationManagerMongoDB.toBson(a2));
}
Aggregations