From d904328248aa6d060d4ac7e627d02ac84da91a9f Mon Sep 17 00:00:00 2001 From: Philip Helger Date: Fri, 8 Dec 2023 17:33:34 +0100 Subject: [PATCH] Test fix --- .../smp/domain/redirect/ISMPRedirectManagerFuncTest.java | 7 ++++++- .../serviceinfo/ISMPServiceInformationManagerFuncTest.java | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/phoss-smp-webapp/src/test/java/com/helger/phoss/smp/domain/redirect/ISMPRedirectManagerFuncTest.java b/phoss-smp-webapp/src/test/java/com/helger/phoss/smp/domain/redirect/ISMPRedirectManagerFuncTest.java index 5c74f0fd9..b904a6f66 100644 --- a/phoss-smp-webapp/src/test/java/com/helger/phoss/smp/domain/redirect/ISMPRedirectManagerFuncTest.java +++ b/phoss-smp-webapp/src/test/java/com/helger/phoss/smp/domain/redirect/ISMPRedirectManagerFuncTest.java @@ -56,8 +56,13 @@ public void testRedirect () throws SMPServerException } final IParticipantIdentifier aPI1 = PeppolIdentifierFactory.INSTANCE.createParticipantIdentifierWithDefaultScheme ("9999:junittest1"); + assertNotNull (aPI1); + final IParticipantIdentifier aPI2 = PeppolIdentifierFactory.INSTANCE.createParticipantIdentifierWithDefaultScheme ("9999:junittest2"); - final IDocumentTypeIdentifier aDocTypeID = PeppolIdentifierFactory.INSTANCE.createDocumentTypeIdentifierWithDefaultScheme ("junit::testdoc#ext:1.0"); + assertNotNull (aPI2); + + final IDocumentTypeIdentifier aDocTypeID = PeppolIdentifierFactory.INSTANCE.createDocumentTypeIdentifierWithDefaultScheme ("junit::testdoc##ext::1.0"); + assertNotNull (aDocTypeID); final ISMPServiceGroupManager aSGMgr = SMPMetaManager.getServiceGroupMgr (); final ISMPServiceGroup aSG = aSGMgr.createSMPServiceGroup (sUserID, aPI1, null, true); diff --git a/phoss-smp-webapp/src/test/java/com/helger/phoss/smp/domain/serviceinfo/ISMPServiceInformationManagerFuncTest.java b/phoss-smp-webapp/src/test/java/com/helger/phoss/smp/domain/serviceinfo/ISMPServiceInformationManagerFuncTest.java index 7e75161c3..e4d47b275 100644 --- a/phoss-smp-webapp/src/test/java/com/helger/phoss/smp/domain/serviceinfo/ISMPServiceInformationManagerFuncTest.java +++ b/phoss-smp-webapp/src/test/java/com/helger/phoss/smp/domain/serviceinfo/ISMPServiceInformationManagerFuncTest.java @@ -52,8 +52,13 @@ public void testAll () throws SMPServerException final ISMPServiceGroupManager aServiceGroupMgr = SMPMetaManager.getServiceGroupMgr (); final ISMPServiceInformationManager aServiceInfoMgr = SMPMetaManager.getServiceInformationMgr (); final IParticipantIdentifier aPI1 = PeppolIdentifierFactory.INSTANCE.createParticipantIdentifierWithDefaultScheme ("9999:junittest1"); - final IDocumentTypeIdentifier aDocTypeID = PeppolIdentifierFactory.INSTANCE.createDocumentTypeIdentifierWithDefaultScheme ("junit::testdoc#ext:1.0"); + assertNotNull (aPI1); + + final IDocumentTypeIdentifier aDocTypeID = PeppolIdentifierFactory.INSTANCE.createDocumentTypeIdentifierWithDefaultScheme ("junit::testdoc##ext::1.0"); + assertNotNull (aDocTypeID); + final IProcessIdentifier aProcessID = PeppolIdentifierFactory.INSTANCE.createProcessIdentifierWithDefaultScheme ("junit-proc"); + assertNotNull (aProcessID); final String sUserID = CSecurity.USER_ADMINISTRATOR_ID; if (SMPMetaManager.getInstance ().getBackendConnectionState ().isFalse ())