This repository has been archived by the owner on Jul 13, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This requires https://jira.opendaylight.org/browse/OVSDB-474.
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
src/main/java/org/opendaylight/ovsdb/simple/OvsdbModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* 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.ovsdb.simple; | ||
|
||
import org.opendaylight.infrautils.inject.guice.AutoWiringModule; | ||
import org.opendaylight.infrautils.inject.guice.GuiceClassPathBinder; | ||
|
||
public class OvsdbModule extends AutoWiringModule { | ||
|
||
public OvsdbModule(GuiceClassPathBinder classPathBinder) { | ||
super(classPathBinder, "org.opendaylight.ovsdb"); | ||
} | ||
|
||
} |
40 changes: 40 additions & 0 deletions
40
src/test/java/org/opendaylight/ovsdb/simple/test/OvsdbModuleTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* 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.ovsdb.simple.test; | ||
|
||
import javax.inject.Inject; | ||
import org.junit.Rule; | ||
import org.opendaylight.aaa.simple.CertModule; | ||
import org.opendaylight.controller.simple.InMemoryControllerModule; | ||
import org.opendaylight.infrautils.inject.guice.GuiceClassPathBinder; | ||
import org.opendaylight.infrautils.inject.guice.testutils.AnnotationsModule; | ||
import org.opendaylight.infrautils.inject.guice.testutils.GuiceRule; | ||
import org.opendaylight.infrautils.ready.guice.ReadyModule; | ||
import org.opendaylight.infrautils.simple.DiagStatusModule; | ||
import org.opendaylight.infrautils.simple.testutils.AbstractSimpleDistributionTest; | ||
import org.opendaylight.infrautils.web.WebModule; | ||
import org.opendaylight.ovsdb.hwvtepsouthbound.HwvtepSouthboundProvider; | ||
import org.opendaylight.ovsdb.lib.OvsdbConnection; | ||
import org.opendaylight.ovsdb.lib.impl.OvsdbConnectionService; | ||
import org.opendaylight.ovsdb.simple.OvsdbModule; | ||
import org.opendaylight.ovsdb.southbound.SouthboundProvider; | ||
|
||
public class OvsdbModuleTest extends AbstractSimpleDistributionTest { | ||
|
||
private static final GuiceClassPathBinder CLASS_PATH_BINDER = new GuiceClassPathBinder("org.opendaylight"); | ||
|
||
public @Rule GuiceRule guice = new GuiceRule(new OvsdbModule(CLASS_PATH_BINDER), new CertModule(), | ||
new InMemoryControllerModule(), new DiagStatusModule(), new WebModule(), new ReadyModule(), | ||
new AnnotationsModule()); | ||
|
||
@Inject OvsdbConnection ovsdbConnection; | ||
@Inject SouthboundProvider southboundProvider; | ||
@Inject OvsdbConnectionService ovsdbConnectionService; | ||
@Inject HwvtepSouthboundProvider hwvtepSouthboundProvider; | ||
|
||
} |