creates common test functions
[transportpce.git] / test-common / src / main / java / org / opendaylight / transportpce / test / common / DataStoreContext.java
diff --git a/test-common/src/main/java/org/opendaylight/transportpce/test/common/DataStoreContext.java b/test-common/src/main/java/org/opendaylight/transportpce/test/common/DataStoreContext.java
new file mode 100644 (file)
index 0000000..d1e3dfd
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * Copyright © 2016 AT&T and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.transportpce.test.common;
+
+import org.opendaylight.controller.md.sal.binding.api.DataBroker;
+import org.opendaylight.controller.md.sal.binding.api.NotificationPublishService;
+import org.opendaylight.controller.md.sal.binding.api.NotificationService;
+import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;
+import org.opendaylight.yangtools.binding.data.codec.impl.BindingNormalizedNodeCodecRegistry;
+import org.opendaylight.yangtools.yang.model.api.SchemaContext;
+
+public interface DataStoreContext {
+
+    DataBroker getDataBroker();
+
+    DOMDataBroker getDOMDataBroker();
+
+    NotificationService createNotificationService();
+
+    NotificationPublishService createNotificationPublishService();
+
+    SchemaContext getSchemaContext();
+
+    BindingNormalizedNodeCodecRegistry getBindingToNormalizedNodeCodec();
+
+    NotificationService getNotificationService();
+
+    NotificationPublishService getNotificationPublishService();
+
+}