summaryrefslogtreecommitdiffstats
path: root/infra/rpc/impl
diff options
context:
space:
mode:
Diffstat (limited to 'infra/rpc/impl')
-rw-r--r--infra/rpc/impl/src/test/java/io/fd/honeycomb/rpc/HoneycombDOMRpcServiceTest.java3
-rw-r--r--infra/rpc/impl/src/test/java/io/fd/honeycomb/rpc/RpcRegistryBuilderTest.java9
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 {