add skeleton
authorMichael Vorburger <mike@vorburger.ch>
Mon, 15 Jan 2018 22:02:46 +0000 (23:02 +0100)
committerMichael Vorburger <mike@vorburger.ch>
Wed, 1 Jul 2020 23:29:48 +0000 (01:29 +0200)
Signed-off-by: Michael Vorburger <mike@vorburger.ch>
pom.xml [new file with mode: 0644]
src/main/java/org/opendaylight/netvirt/simple/NetvirtModule.java [new file with mode: 0644]
src/test/java/org/opendaylight/netvirt/simple/test/NetvirtSimpleDistributionTest.java [new file with mode: 0644]

diff --git a/pom.xml b/pom.xml
new file mode 100644 (file)
index 0000000..6c020c3
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright © 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
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.opendaylight.infrautils</groupId>
+    <artifactId>parent</artifactId>
+    <version>1.3.0-SNAPSHOT</version>
+    <relativePath/>
+  </parent>
+
+  <groupId>ch.vorburger.opendaylight.simple</groupId>
+  <artifactId>poc</artifactId>
+
+   <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.opendaylight.infrautils</groupId>
+                <artifactId>infrautils-artifacts</artifactId>
+                <version>1.3.0-SNAPSHOT</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+            <dependency>
+                <groupId>org.opendaylight.controller</groupId>
+                <artifactId>mdsal-artifacts</artifactId>
+                <version>1.7.0-SNAPSHOT</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+            <dependency>
+                <groupId>org.opendaylight.daexim</groupId>
+                <artifactId>daexim-artifacts</artifactId>
+                <version>1.3.0-SNAPSHOT</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.opendaylight.infrautils</groupId>
+      <artifactId>infrautils-testutils</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.opendaylight.infrautils</groupId>
+      <artifactId>inject.guice.testutils</artifactId>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+</project>
diff --git a/src/main/java/org/opendaylight/netvirt/simple/NetvirtModule.java b/src/main/java/org/opendaylight/netvirt/simple/NetvirtModule.java
new file mode 100644 (file)
index 0000000..7bc65a3
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ * Copyright (c) 2017 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.netvirt.simple;
+
+import org.opendaylight.infrautils.inject.guice.testutils.AbstractGuiceJsr250Module;
+
+/**
+ * Guice Module with Bindings for netvirt services.
+ *
+ * @author Michael Vorburger.ch
+ */
+public class NetvirtModule extends AbstractGuiceJsr250Module {
+
+    @Override
+    protected void configureBindings() throws Exception {
+    }
+
+}
diff --git a/src/test/java/org/opendaylight/netvirt/simple/test/NetvirtSimpleDistributionTest.java b/src/test/java/org/opendaylight/netvirt/simple/test/NetvirtSimpleDistributionTest.java
new file mode 100644 (file)
index 0000000..3b0ff3b
--- /dev/null
@@ -0,0 +1,38 @@
+/*
+ * Copyright (c) 2017 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.netvirt.simple.test;
+
+import org.junit.ClassRule;
+import org.junit.Rule;
+import org.junit.Test;
+import org.opendaylight.infrautils.inject.guice.testutils.GuiceRule;
+import org.opendaylight.infrautils.testutils.ClasspathHellDuplicatesCheckRule;
+import org.opendaylight.infrautils.testutils.LogCaptureRule;
+import org.opendaylight.infrautils.testutils.LogRule;
+import org.opendaylight.netvirt.simple.NetvirtModule;
+
+/**
+ * Netvirt full distribution component test.
+ *
+ * @author Michael Vorburger.ch
+ */
+public class NetvirtSimpleDistributionTest {
+
+    public static @ClassRule ClasspathHellDuplicatesCheckRule jHades = new ClasspathHellDuplicatesCheckRule();
+
+    public @Rule LogRule logRule = new LogRule();
+    public @Rule LogCaptureRule logCaptureRule = new LogCaptureRule();
+    public @Rule GuiceRule guice = new GuiceRule(NetvirtModule.class);
+
+    // TODO @Inject SomeInterfaceWithPostConstruct someService;
+
+    @Test public void testNetvirtBindings() {
+        // This is intentionally empty.
+    }
+
+}