use of com.helger.smpclient.IgnoredNaptrTest in project peppol-commons by phax.
the class BDXLURLProviderTest method testResolvePeppol.
@Test
@Ignore("Because it may take long to execute")
@IgnoredNaptrTest
public void testResolvePeppol() throws SMPDNSResolutionException {
// Only if online
if (NetworkOnlineStatusDeterminator.getNetworkStatus().isOnline()) {
final IBDXLURLProvider aURLProvider = BDXLURLProvider.INSTANCE;
final IParticipantIdentifier aPI = PeppolIdentifierFactory.INSTANCE.createParticipantIdentifierWithDefaultScheme("9915:test");
final String sDomain = aURLProvider.getDNSNameOfParticipant(aPI, ESML.DIGIT_TEST);
assertEquals("EH5BOAVAKTMBGZYH2A63DZ4QOV33FVP5NSDVQKLUCFRAAYOODW6A.iso6523-actorid-upis.acc.edelivery.tech.ec.europa.eu", sDomain);
final URL x = aURLProvider.getSMPURLOfParticipant(aPI, ESML.DIGIT_TEST);
assertNotNull(x);
if (true)
assertEquals("http://test-infra.peppol.at", x.toString());
else
assertEquals("BRZ-TEST-SMP.publisher.acc.edelivery.tech.ec.europa.eu", x.toString());
}
}
use of com.helger.smpclient.IgnoredNaptrTest in project peppol-commons by phax.
the class BPCURLProviderSMP1Test method testGetSMPURIOfParticipant.
@Test
@Ignore("Because it may take long to execute")
@IgnoredNaptrTest
public void testGetSMPURIOfParticipant() throws SMPDNSResolutionException {
final SimpleParticipantIdentifier aPI = new SimpleParticipantIdentifier("urn:oasis:names:tc:ebcore:partyid-type:iso6523:0060", "123456789");
final URI x = BPCURLProviderSMP1.INSTANCE.getSMPURIOfParticipant(aPI, "bpc02.b2bei.us.");
assertEquals("https://bpc-smp.bdxhub.com/", x.toString());
}
use of com.helger.smpclient.IgnoredNaptrTest in project peppol-commons by phax.
the class BPCURLProviderSMP2Test method testGetSMPURIOfParticipant.
@Test
@Ignore("Because it may take long to execute")
@IgnoredNaptrTest
public void testGetSMPURIOfParticipant() throws SMPDNSResolutionException {
final SimpleParticipantIdentifier aPI = new SimpleParticipantIdentifier("urn:oasis:names:tc:ebcore:partyid-type:iso6523:0060", "123456789");
final URI x = BPCURLProviderSMP2.INSTANCE.getSMPURIOfParticipant(aPI, "bpc02.b2bei.us.");
assertEquals("https://bpc-smp.bdxhub.com/", x.toString());
}
Aggregations