From 52716bfddcd52dd2cc6b0f28b69aee93df400400 Mon Sep 17 00:00:00 2001 From: Philip Helger Date: Wed, 18 Dec 2024 19:57:16 +0100 Subject: [PATCH] Added test --- .../smpclient/peppol/SMPClientReadOnlyTest.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/peppol-smp-client/src/test/java/com/helger/smpclient/peppol/SMPClientReadOnlyTest.java b/peppol-smp-client/src/test/java/com/helger/smpclient/peppol/SMPClientReadOnlyTest.java index d56591d9..3edf2116 100644 --- a/peppol-smp-client/src/test/java/com/helger/smpclient/peppol/SMPClientReadOnlyTest.java +++ b/peppol-smp-client/src/test/java/com/helger/smpclient/peppol/SMPClientReadOnlyTest.java @@ -600,4 +600,18 @@ public void testIssue2303 () throws Exception EPredefinedDocumentTypeIdentifier.INVOICE_EN16931_PEPPOL_V30); assertNotNull (aSM); } + + @Test + @Ignore ("Failing at Seeburger atm") + public void testIssue2412 () throws Exception + { + final IParticipantIdentifier aPI = PeppolIdentifierFactory.INSTANCE.createParticipantIdentifierWithDefaultScheme ("0192:930030872"); + final SMPClientReadOnly aSMPClient = new SMPClientReadOnly (PeppolURLProvider.INSTANCE, aPI, ESML.DIGIT_PRODUCTION); + + // Currently throws SMPClientBadResponseException: Malformed XML document + // returned from SMP server + final SignedServiceMetadataType aSM = aSMPClient.getServiceMetadataOrNull (aPI, + EPredefinedDocumentTypeIdentifier.INVOICE_EN16931_PEPPOL_V30); + assertNull (aSM); + } }