Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Feb 15, 2024
1 parent 66f6334 commit ed706cb
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,18 @@ public void testResolvePeppol () throws SMPDNSResolutionException
}

@Test
public void testResolveToop () throws SMPDNSResolutionException
public void testResolveNamePeppol () throws SMPDNSResolutionException
{
// Only if online
final IBDXLURLProvider aURLProvider = BDXLURLProvider.INSTANCE;
final IParticipantIdentifier aPI = PeppolIdentifierFactory.INSTANCE.createParticipantIdentifierWithDefaultScheme ("0088:1234567890123");
final String sDomain = aURLProvider.getDNSNameOfParticipant (aPI, ESML.DIGIT_TEST);
assertEquals ("SJSYVCCMQYJXK3WEUAPFFQ4X3UMCRF4QRYHERJ4VOVHMONH7GCCQ.iso6523-actorid-upis.acc.edelivery.tech.ec.europa.eu",
sDomain);
}

@Test
public void testResolveNameToop () throws SMPDNSResolutionException
{
final IBDXLURLProvider aURLProvider = BDXLURLProvider.INSTANCE;
assertEquals ("Y7DZFXAF3D4CJZ4KCGRXTEC6TWVCGA4KY7ZWA5BOIF6MSWD4TDRQ.iso6523-actorid-upis.toop.acc.edelivery.tech.ec.europa.eu",
Expand All @@ -131,7 +142,7 @@ public void testResolveToop () throws SMPDNSResolutionException
}

@Test
public void testResolveDe4a () throws SMPDNSResolutionException
public void testResolveNameDe4a () throws SMPDNSResolutionException
{
final IBDXLURLProvider aURLProvider = BDXLURLProvider.INSTANCE;
assertEquals ("M2V5CJBJVUYEUKPUEGC4F3DPEBBCJZI3PBXFEGRUQK3R3J42X5VQ.iso6523-actorid-upis.de4a.edelivery.tech.ec.europa.eu",
Expand Down

0 comments on commit ed706cb

Please sign in to comment.