From 62f3997be8eaf0e26f49d9824b1ff96765f9ae95 Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Mon, 15 Jan 2018 23:02:46 +0100 Subject: [PATCH] add skeleton Signed-off-by: Michael Vorburger --- pom.xml | 62 +++++++++++++++++++ .../netvirt/simple/NetvirtModule.java | 23 +++++++ .../test/NetvirtSimpleDistributionTest.java | 38 ++++++++++++ 3 files changed, 123 insertions(+) create mode 100644 pom.xml create mode 100644 src/main/java/org/opendaylight/netvirt/simple/NetvirtModule.java create mode 100644 src/test/java/org/opendaylight/netvirt/simple/test/NetvirtSimpleDistributionTest.java diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..6c020c3 --- /dev/null +++ b/pom.xml @@ -0,0 +1,62 @@ + + + + 4.0.0 + + + org.opendaylight.infrautils + parent + 1.3.0-SNAPSHOT + + + + ch.vorburger.opendaylight.simple + poc + + + + + org.opendaylight.infrautils + infrautils-artifacts + 1.3.0-SNAPSHOT + pom + import + + + org.opendaylight.controller + mdsal-artifacts + 1.7.0-SNAPSHOT + pom + import + + + org.opendaylight.daexim + daexim-artifacts + 1.3.0-SNAPSHOT + pom + import + + + + + + + org.opendaylight.infrautils + infrautils-testutils + test + + + org.opendaylight.infrautils + inject.guice.testutils + test + + + + 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 index 0000000..7bc65a3 --- /dev/null +++ b/src/main/java/org/opendaylight/netvirt/simple/NetvirtModule.java @@ -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 index 0000000..3b0ff3b --- /dev/null +++ b/src/test/java/org/opendaylight/netvirt/simple/test/NetvirtSimpleDistributionTest.java @@ -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. + } + +} -- 2.36.6