From 9c05052eac7aeedf4cfd0ad00972e83f49b9d925 Mon Sep 17 00:00:00 2001 From: aaron-kumar Date: Sun, 17 Nov 2024 03:50:40 +0530 Subject: [PATCH] Added oxalis-as4 7.0.0-alpha dependency, uncommented test-cases --- oxalis-outbound/pom.xml | 12 ++++++------ .../outbound/lookup/CachedLookupServiceTest.java | 4 ++-- .../outbound/lookup/DefaultLookupServiceTest.java | 4 ++-- .../oxalis/outbound/lookup/LookupServiceTest.java | 4 ++-- .../transmission/TransmissionRequestBuilderTest.java | 2 +- ...ansmissionRequestBuilderWithoutOverridesTest.java | 4 ++-- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/oxalis-outbound/pom.xml b/oxalis-outbound/pom.xml index 134e2e631..bd137b9f1 100644 --- a/oxalis-outbound/pom.xml +++ b/oxalis-outbound/pom.xml @@ -54,12 +54,12 @@ network.oxalis oxalis-commons - - - - - - + + network.oxalis + oxalis-as4 + 7.0.0-alpha + test + network.oxalis oxalis-document-sniffer diff --git a/oxalis-outbound/src/test/java/network/oxalis/outbound/lookup/CachedLookupServiceTest.java b/oxalis-outbound/src/test/java/network/oxalis/outbound/lookup/CachedLookupServiceTest.java index f71c2d3d8..b4772cbee 100644 --- a/oxalis-outbound/src/test/java/network/oxalis/outbound/lookup/CachedLookupServiceTest.java +++ b/oxalis-outbound/src/test/java/network/oxalis/outbound/lookup/CachedLookupServiceTest.java @@ -49,7 +49,7 @@ public class CachedLookupServiceTest { @Named("cached") private LookupService lookupService; - //@Test + @Test public void simple() throws Exception { Endpoint endpoint = lookupService.lookup(Header.newInstance() .receiver(participant) @@ -59,7 +59,7 @@ public void simple() throws Exception { Assert.assertNotNull(endpoint); } - //@Test + @Test public void simpleCached() throws Exception { Endpoint endpoint1 = lookupService.lookup(Header.newInstance() .receiver(participant) diff --git a/oxalis-outbound/src/test/java/network/oxalis/outbound/lookup/DefaultLookupServiceTest.java b/oxalis-outbound/src/test/java/network/oxalis/outbound/lookup/DefaultLookupServiceTest.java index cb24a6def..c3830edf1 100644 --- a/oxalis-outbound/src/test/java/network/oxalis/outbound/lookup/DefaultLookupServiceTest.java +++ b/oxalis-outbound/src/test/java/network/oxalis/outbound/lookup/DefaultLookupServiceTest.java @@ -39,7 +39,7 @@ public class DefaultLookupServiceTest { @Named("default") private LookupService lookupService; - //@Test + @Test public void simple() throws Exception { Endpoint endpoint = lookupService.lookup(Header.newInstance() .receiver(ParticipantIdentifier.of("0192:923829644")) @@ -49,7 +49,7 @@ public void simple() throws Exception { Assert.assertNotNull(endpoint); } - //@Test + @Test public void simpleBusdoxDocIdQnsScheme() throws Exception { Endpoint endpoint = lookupService.lookup(Header.newInstance() .receiver(ParticipantIdentifier.of("0192:923829644")) diff --git a/oxalis-outbound/src/test/java/network/oxalis/outbound/lookup/LookupServiceTest.java b/oxalis-outbound/src/test/java/network/oxalis/outbound/lookup/LookupServiceTest.java index 6d4dfa4b3..fc5240998 100644 --- a/oxalis-outbound/src/test/java/network/oxalis/outbound/lookup/LookupServiceTest.java +++ b/oxalis-outbound/src/test/java/network/oxalis/outbound/lookup/LookupServiceTest.java @@ -36,7 +36,7 @@ public class LookupServiceTest { @Inject private LookupService lookupService; - //@Test + @Test public void simple() throws Exception { Endpoint endpoint = lookupService.lookup(Header.newInstance() .receiver(ParticipantIdentifier.of("0192:923829644")) @@ -50,7 +50,7 @@ public void simple() throws Exception { Assert.assertNotNull(endpoint); } - //@Test + @Test public void simpleBusdoxDocIdQnsScheme() throws Exception { Endpoint endpoint = lookupService.lookup(Header.newInstance() .receiver(ParticipantIdentifier.of("0192:923829644")) diff --git a/oxalis-outbound/src/test/java/network/oxalis/outbound/transmission/TransmissionRequestBuilderTest.java b/oxalis-outbound/src/test/java/network/oxalis/outbound/transmission/TransmissionRequestBuilderTest.java index 20e7dbe0e..801321b35 100644 --- a/oxalis-outbound/src/test/java/network/oxalis/outbound/transmission/TransmissionRequestBuilderTest.java +++ b/oxalis-outbound/src/test/java/network/oxalis/outbound/transmission/TransmissionRequestBuilderTest.java @@ -108,7 +108,7 @@ public void makeSureWeAllowOverrides() { "Overriding transmission request parameters is not permitted!"); } - //@Test + @Test public void createTransmissionRequestBuilderWithOnlyTheMessageDocument() throws Exception { assertNotNull(transmissionRequestBuilder); diff --git a/oxalis-outbound/src/test/java/network/oxalis/outbound/transmission/TransmissionRequestBuilderWithoutOverridesTest.java b/oxalis-outbound/src/test/java/network/oxalis/outbound/transmission/TransmissionRequestBuilderWithoutOverridesTest.java index 9270916d3..503a4b02f 100644 --- a/oxalis-outbound/src/test/java/network/oxalis/outbound/transmission/TransmissionRequestBuilderWithoutOverridesTest.java +++ b/oxalis-outbound/src/test/java/network/oxalis/outbound/transmission/TransmissionRequestBuilderWithoutOverridesTest.java @@ -141,8 +141,8 @@ public void makeSureWeDetectAllIllegalOverrides() throws OxalisException { transmissionRequestBuilder.build(); } - //@Test(expectedExceptions = IllegalStateException.class, - // expectedExceptionsMessageRegExp = "You are not allowed to override the EndpointAddress from SMP.") + @Test(expectedExceptions = IllegalStateException.class, + expectedExceptionsMessageRegExp = "You are not allowed to override the EndpointAddress from SMP.") public void makeSureWeDetectEndpointOverrides() throws Exception { MockLookupModule.resetService();