Add AbstractTransactionCommitCohort unit tests
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / access / client / AccessClientUtil.java
index 4f6625b..9929b40 100644 (file)
@@ -22,6 +22,11 @@ public class AccessClientUtil {
         return new ClientActorContext(actor, system.scheduler(), system.dispatcher(), persistenceId, id);
     }
 
+    public static <T extends BackendInfo> ConnectedClientConnection<T> createConnectedConnection(
+            final ClientActorContext context, final Long cookie, final T backend) {
+        return new ConnectedClientConnection<>(context, cookie, backend);
+    }
+
     public static void completeRequest(final AbstractClientConnection<? extends BackendInfo> connection,
                                        final ResponseEnvelope<?> envelope) {
         connection.receiveResponse(envelope);

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.