@Test public void basicTest() { final RpcDefinition rpcDefinition = mock(RpcDefinition.class); doReturn(TestModel.TEST2_QNAME).when(rpcDefinition).getQName(); final RoutedDOMRpcRoutingTableEntry routedDOMRpcRoutingTableEntry = new RoutedDOMRpcRoutingTableEntry(rpcDefinition, TestModel.TEST_PATH, new HashMap<>()); assertNotNull(routedDOMRpcRoutingTableEntry.newInstance(new HashMap<>())); final ListenableFuture<?> future = OperationInvocation.invoke(routedDOMRpcRoutingTableEntry, TEST_CHILD); final ExecutionException ex = assertThrows(ExecutionException.class, () -> future.get(5, TimeUnit.SECONDS)); assertThat(ex.getCause(), instanceOf(DOMRpcImplementationNotAvailableException.class)); }
@Override protected RoutedDOMRpcRoutingTableEntry newInstance(final Map<YangInstanceIdentifier, List<DOMRpcImplementation>> impls) { return new RoutedDOMRpcRoutingTableEntry(getRpcId(), impls); }
RoutedDOMRpcRoutingTableEntry extends AbstractDOMRpcRoutingTableEntry { @Override protected RoutedDOMRpcRoutingTableEntry newInstance(final Map<YangInstanceIdentifier, List<DOMRpcImplementation>> impls) { return new RoutedDOMRpcRoutingTableEntry(getRpcId(), impls); } }
RoutedDOMRpcRoutingTableEntry extends AbstractDOMRpcRoutingTableEntry { @Override protected RoutedDOMRpcRoutingTableEntry newInstance(final Map<YangInstanceIdentifier, List<DOMRpcImplementation>> impls) { return new RoutedDOMRpcRoutingTableEntry(getRpcId(), impls); } private  RoutedDOMRpcRoutingTableEntry(final DOMRpcIdentifier routedRpcId,
            final Map<YangInstanceIdentifier, List<DOMRpcImplementation>> impls);   RoutedDOMRpcRoutingTableEntry(final RpcDefinition def, final YangInstanceIdentifier keyId,
            final Map<YangInstanceIdentifier, List<DOMRpcImplementation>> impls); }
RoutedDOMRpcRoutingTableEntry extends AbstractDOMRpcRoutingTableEntry { @Override protected RoutedDOMRpcRoutingTableEntry newInstance(final Map<YangInstanceIdentifier, List<DOMRpcImplementation>> impls) { return new RoutedDOMRpcRoutingTableEntry(getRpcId(), impls); } private  RoutedDOMRpcRoutingTableEntry(final DOMRpcIdentifier routedRpcId,
            final Map<YangInstanceIdentifier, List<DOMRpcImplementation>> impls);   RoutedDOMRpcRoutingTableEntry(final RpcDefinition def, final YangInstanceIdentifier keyId,
            final Map<YangInstanceIdentifier, List<DOMRpcImplementation>> impls);  }
RoutedDOMRpcRoutingTableEntry extends AbstractDOMRpcRoutingTableEntry { @Override protected RoutedDOMRpcRoutingTableEntry newInstance(final Map<YangInstanceIdentifier, List<DOMRpcImplementation>> impls) { return new RoutedDOMRpcRoutingTableEntry(getRpcId(), impls); } private  RoutedDOMRpcRoutingTableEntry(final DOMRpcIdentifier routedRpcId,
            final Map<YangInstanceIdentifier, List<DOMRpcImplementation>> impls);   RoutedDOMRpcRoutingTableEntry(final RpcDefinition def, final YangInstanceIdentifier keyId,
            final Map<YangInstanceIdentifier, List<DOMRpcImplementation>> impls);   }