Search in sources :

Example 1 with BaseRpcSchemalessTransformer

use of org.opendaylight.netconf.sal.connect.netconf.schema.mapping.BaseRpcSchemalessTransformer in project netconf by opendaylight.

the class SchemalessNetconfDeviceRpcTest method setUp.

@Before
public void setUp() throws Exception {
    RpcResult<NetconfMessage> msg = null;
    ListenableFuture<RpcResult<NetconfMessage>> future = Futures.immediateFuture(msg);
    doReturn(future).when(listener).sendRequest(any(), any());
    final MessageCounter counter = new MessageCounter();
    deviceRpc = new SchemalessNetconfDeviceRpc(new RemoteDeviceId("device1", InetSocketAddress.createUnresolved("0.0.0.0", 17830)), listener, new BaseRpcSchemalessTransformer(BASE_SCHEMAS, counter), new SchemalessMessageTransformer(counter));
}
Also used : RemoteDeviceId(org.opendaylight.netconf.sal.connect.util.RemoteDeviceId) NetconfMessage(org.opendaylight.netconf.api.NetconfMessage) MessageCounter(org.opendaylight.netconf.sal.connect.util.MessageCounter) SchemalessMessageTransformer(org.opendaylight.netconf.sal.connect.netconf.schema.mapping.SchemalessMessageTransformer) RpcResult(org.opendaylight.yangtools.yang.common.RpcResult) BaseRpcSchemalessTransformer(org.opendaylight.netconf.sal.connect.netconf.schema.mapping.BaseRpcSchemalessTransformer) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 NetconfMessage (org.opendaylight.netconf.api.NetconfMessage)1 BaseRpcSchemalessTransformer (org.opendaylight.netconf.sal.connect.netconf.schema.mapping.BaseRpcSchemalessTransformer)1 SchemalessMessageTransformer (org.opendaylight.netconf.sal.connect.netconf.schema.mapping.SchemalessMessageTransformer)1 MessageCounter (org.opendaylight.netconf.sal.connect.util.MessageCounter)1 RemoteDeviceId (org.opendaylight.netconf.sal.connect.util.RemoteDeviceId)1 RpcResult (org.opendaylight.yangtools.yang.common.RpcResult)1