prepare InMemoryMdsalModuleTest (but @Ignore TODO it)
authorMichael Vorburger <mike@vorburger.ch>
Fri, 21 Dec 2018 12:40:59 +0000 (13:40 +0100)
committerMichael Vorburger <mike@vorburger.ch>
Wed, 1 Jul 2020 23:38:04 +0000 (01:38 +0200)
Signed-off-by: Michael Vorburger <mike@vorburger.ch>
src/test/java/org/opendaylight/mdsal/simple/test/InMemoryMdsalModuleTest.java [new file with mode: 0644]

diff --git a/src/test/java/org/opendaylight/mdsal/simple/test/InMemoryMdsalModuleTest.java b/src/test/java/org/opendaylight/mdsal/simple/test/InMemoryMdsalModuleTest.java
new file mode 100644 (file)
index 0000000..bf9c9ff
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2018 Red Hat, Inc. 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.mdsal.simple.test;
+
+import org.junit.Ignore;
+import org.junit.Rule;
+import org.junit.Test;
+import org.opendaylight.controller.simple.InMemoryControllerModule;
+import org.opendaylight.infrautils.inject.guice.testutils.AnnotationsModule;
+import org.opendaylight.infrautils.inject.guice.testutils.GuiceRule2;
+import org.opendaylight.infrautils.simple.testutils.AbstractSimpleDistributionTest;
+import org.opendaylight.mdsal.binding.api.DataBroker;
+
+public class InMemoryMdsalModuleTest extends AbstractSimpleDistributionTest {
+
+    public @Rule GuiceRule2 guice = new GuiceRule2(InMemoryControllerModule.class, AnnotationsModule.class);
+
+    // TODO @Inject
+    DataBroker dataBroker;
+
+    @Ignore // TODO sort out DataBrokerAdapter in MdsalModule
+    @Test public void testDataBroker() {
+        // dataBroker.newReadWriteTransaction().commit();
+    }
+}