Add AbstractClientHandle derived classes tests
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / access / client / AccessClientUtil.java
index 999aad8..4f6625b 100644 (file)
@@ -10,6 +10,7 @@ package org.opendaylight.controller.cluster.access.client;
 import akka.actor.ActorRef;
 import akka.actor.ActorSystem;
 import org.opendaylight.controller.cluster.access.concepts.ClientIdentifier;
+import org.opendaylight.controller.cluster.access.concepts.ResponseEnvelope;
 
 /**
  * Util class to access package private members in cds-access-client for test purposes.
@@ -21,4 +22,9 @@ public class AccessClientUtil {
         return new ClientActorContext(actor, system.scheduler(), system.dispatcher(), persistenceId, id);
     }
 
+    public static void completeRequest(final AbstractClientConnection<? extends BackendInfo> connection,
+                                       final ResponseEnvelope<?> envelope) {
+        connection.receiveResponse(envelope);
+    }
+
 }
\ No newline at end of file