diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2018-01-04 07:08:34 +0100 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2018-03-23 06:54:25 +0100 |
commit | 8acc5613345d9c50d0f33c3d74ae64e474b80724 (patch) | |
tree | 130723e4f6e4daa2fcc57538d971dfd34886c8a8 /infra/rpc | |
parent | bc559d4e6ccbdbaf65e612e56b2fe5d0614ff623 (diff) |
HONEYCOMB-424: bump ODL dependencies to Oxygen
Change-Id: I3160e5df4e66b3b3c732619fc1fc7599459fda76
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'infra/rpc')
-rw-r--r-- | infra/rpc/impl/src/test/java/io/fd/honeycomb/rpc/HoneycombDOMRpcServiceTest.java | 3 | ||||
-rw-r--r-- | infra/rpc/impl/src/test/java/io/fd/honeycomb/rpc/RpcRegistryBuilderTest.java | 9 |
2 files changed, 8 insertions, 4 deletions
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 { |