use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.PutTopInputBuilder in project mdsal by opendaylight.
the class RpcDataSerializationTest method testRpcInputToNormalized.
@Test
public void testRpcInputToNormalized() {
final PutTopInput bindingOriginal = new PutTopInputBuilder().setTopLevelList(ImmutableMap.of(LIST_KEY, new TopLevelListBuilder().withKey(LIST_KEY).build())).build();
final ContainerNode dom = codecContext.toNormalizedNodeRpcData(bindingOriginal);
assertNotNull(dom);
assertEquals(PutTopInput.QNAME, dom.getIdentifier().getNodeType());
final DataObject bindingDeserialized = codecContext.fromNormalizedNodeRpcData(PUT_TOP_INPUT, dom);
assertEquals(bindingOriginal, bindingDeserialized);
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.PutTopInputBuilder in project netconf by opendaylight.
the class MountPointEndToEndTest method testPutTopRpc.
private void testPutTopRpc(final DOMRpcService domRpcService, final DOMRpcResult result) throws InterruptedException, ExecutionException, TimeoutException {
ContainerNode putTopInput = bindingToNormalized.toNormalizedNodeRpcData(new PutTopInputBuilder().setTopLevelList(oneTopLevelList()).build());
testRpc(domRpcService, putTopRpcSchemaPath, putTopInput, result);
}
Aggregations