From 3b78a551e3d28164809b07c6b97cf3c134a70aa9 Mon Sep 17 00:00:00 2001 From: Philip Helger Date: Wed, 6 Nov 2024 21:26:24 +0100 Subject: [PATCH] Updated the DBNAlliance Pilot domain name --- README.md | 2 ++ .../src/main/java/com/helger/smpclient/dbna/EDBNASML.java | 2 +- .../com/helger/smpclient/url/DBNAURLProviderSMPTest.java | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 67d74977..3c2852a5 100644 --- a/README.md +++ b/README.md @@ -302,6 +302,8 @@ They depend on several other libraries so I suggest you are going for the Maven # News and noteworthy +* v9.5.2 - work in progress + * Updated the DBNAlliance Pilot domain name * v9.5.1 - 2024-08-11 * Make sure that wildcard lookups including a "*" in the Customization ID will always fail * Added additional `SMPClientReadOnly.getWildcardServiceMetadataOrNull` overload diff --git a/peppol-smp-client/src/main/java/com/helger/smpclient/dbna/EDBNASML.java b/peppol-smp-client/src/main/java/com/helger/smpclient/dbna/EDBNASML.java index 7d71a0d8..14943f85 100644 --- a/peppol-smp-client/src/main/java/com/helger/smpclient/dbna/EDBNASML.java +++ b/peppol-smp-client/src/main/java/com/helger/smpclient/dbna/EDBNASML.java @@ -30,7 +30,7 @@ public enum EDBNASML { PRODUCTION ("sml.dbnalliance.net."), TEST ("sml.dbnalliance.com."), - PILOT ("sml.digitalbusinessnetworks.info."); + PILOT ("sml.dbnalliancepilot.net."); private final String m_sZoneName; diff --git a/peppol-smp-client/src/test/java/com/helger/smpclient/url/DBNAURLProviderSMPTest.java b/peppol-smp-client/src/test/java/com/helger/smpclient/url/DBNAURLProviderSMPTest.java index 27184d27..ad8fa64e 100644 --- a/peppol-smp-client/src/test/java/com/helger/smpclient/url/DBNAURLProviderSMPTest.java +++ b/peppol-smp-client/src/test/java/com/helger/smpclient/url/DBNAURLProviderSMPTest.java @@ -65,4 +65,12 @@ public void testGetSMPURIOfAvalara () throws SMPDNSResolutionException final URI x = DBNAURLProviderSMP.INSTANCE.getSMPURIOfParticipant (aPI, EDBNASML.TEST.getZoneName ()); assertEquals ("https://einvoicing.qa.avalara.io/", x.toString ()); } + + @Test + public void testGetSMPURIOfPilotSMP () throws SMPDNSResolutionException + { + final SimpleParticipantIdentifier aPI = new SimpleParticipantIdentifier ("DUNS", "556678558"); + final URI x = DBNAURLProviderSMP.INSTANCE.getSMPURIOfParticipant (aPI, EDBNASML.PILOT.getZoneName ()); + assertEquals ("https://smp.dbnalliancepilot.net/", x.toString ()); + } }