Search in sources :

Example 6 with GetConfigRequest

use of org.opendaylight.netconf.topology.singleton.messages.netconf.GetConfigRequest in project netconf by opendaylight.

the class NetconfDataTreeServiceActorTest method testGetConfigEmpty.

@Test
public void testGetConfigEmpty() {
    doReturn(immediateFluentFuture(Optional.empty())).when(netconfService).getConfig(PATH);
    actorRef.tell(new GetConfigRequest(PATH), probe.ref());
    verify(netconfService).getConfig(PATH);
    probe.expectMsgClass(EmptyReadResponse.class);
}
Also used : GetConfigRequest(org.opendaylight.netconf.topology.singleton.messages.netconf.GetConfigRequest) Test(org.junit.Test)

Aggregations

GetConfigRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.GetConfigRequest)6 Test (org.junit.Test)4 Optional (java.util.Optional)2 NormalizedNodeMessage (org.opendaylight.netconf.topology.singleton.messages.NormalizedNodeMessage)2 NormalizedNode (org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode)2 ReceiveTimeout (akka.actor.ReceiveTimeout)1 Status (akka.actor.Status)1 ListenableFuture (com.google.common.util.concurrent.ListenableFuture)1 ReadFailedException (org.opendaylight.mdsal.common.api.ReadFailedException)1 CommitRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.CommitRequest)1 CreateEditConfigRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.CreateEditConfigRequest)1 DeleteEditConfigRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.DeleteEditConfigRequest)1 DiscardChangesRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.DiscardChangesRequest)1 GetConfigWithFieldsRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.GetConfigWithFieldsRequest)1 GetRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.GetRequest)1 GetWithFieldsRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.GetWithFieldsRequest)1 LockRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.LockRequest)1 MergeEditConfigRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.MergeEditConfigRequest)1 RemoveEditConfigRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.RemoveEditConfigRequest)1 ReplaceEditConfigRequest (org.opendaylight.netconf.topology.singleton.messages.netconf.ReplaceEditConfigRequest)1