From 8acc5613345d9c50d0f33c3d74ae64e474b80724 Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Thu, 4 Jan 2018 07:08:34 +0100 Subject: HONEYCOMB-424: bump ODL dependencies to Oxygen Change-Id: I3160e5df4e66b3b3c732619fc1fc7599459fda76 Signed-off-by: Marek Gradzki --- .../java/io/fd/honeycomb/rpc/HoneycombDOMRpcServiceTest.java | 3 ++- .../test/java/io/fd/honeycomb/rpc/RpcRegistryBuilderTest.java | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'infra/rpc') diff --git a/infra/rpc/impl/src/test/java/io/fd/honeycomb/rpc/HoneycombDOMRpcServiceTest.java b/infra/rpc/impl/src/test/java/io/fd/honeycomb/rpc/HoneycombDOMRpcServiceTest.java index 53d37f375..7b27fec4e 100644 --- a/infra/rpc/impl/src/test/java/io/fd/honeycomb/rpc/HoneycombDOMRpcServiceTest.java +++ b/infra/rpc/impl/src/test/java/io/fd/honeycomb/rpc/HoneycombDOMRpcServiceTest.java @@ -20,6 +20,7 @@ import static org.junit.Assert.assertEquals; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; +import java.net.URI; import java.util.concurrent.CompletableFuture; import org.junit.Before; import org.junit.Test; @@ -49,7 +50,7 @@ public class HoneycombDOMRpcServiceTest { @Before public void setUp() { MockitoAnnotations.initMocks(this); - node = mockContainerNode(QName.create("a")); + node = mockContainerNode(QName.create(URI.create("urn:foo"), "a")); service = new HoneycombDOMRpcService(serializer, registry); when(serializer.fromNormalizedNodeRpcData(ArgumentMatchers.any(), ArgumentMatchers.any())).thenReturn(input); } diff --git a/infra/rpc/impl/src/test/java/io/fd/honeycomb/rpc/RpcRegistryBuilderTest.java b/infra/rpc/impl/src/test/java/io/fd/honeycomb/rpc/RpcRegistryBuilderTest.java index c7d7ce746..d021555b8 100644 --- a/infra/rpc/impl/src/test/java/io/fd/honeycomb/rpc/RpcRegistryBuilderTest.java +++ b/infra/rpc/impl/src/test/java/io/fd/honeycomb/rpc/RpcRegistryBuilderTest.java @@ -19,6 +19,7 @@ package io.fd.honeycomb.rpc; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; +import java.net.URI; import java.util.concurrent.ExecutionException; import org.junit.Before; import org.junit.Test; @@ -37,8 +38,10 @@ public class RpcRegistryBuilderTest { private RpcService service1; @Mock private RpcService service2; - private static final SchemaPath ID1 = SchemaPath.ROOT.createChild(QName.create("a")); - private static final SchemaPath ID2 = SchemaPath.ROOT.createChild(QName.create("b")); + + private static final URI namespace = URI.create("urn:foo"); + private static final SchemaPath ID1 = SchemaPath.ROOT.createChild(QName.create(namespace, "a")); + private static final SchemaPath ID2 = SchemaPath.ROOT.createChild(QName.create(namespace, "b")); @Before public void setUp() { @@ -66,7 +69,7 @@ public class RpcRegistryBuilderTest { @Test public void testServiceNotFound() throws ExecutionException, InterruptedException { - final SchemaPath id = SchemaPath.ROOT.createChild(QName.create("c")); + final SchemaPath id = SchemaPath.ROOT.createChild(QName.create(namespace, "c")); final DataObject request = Mockito.mock(DataObject.class); try { -- cgit 1.2.3-korg