Unit tests to be sure drivers will load
Change-Id: I95cd5c7ffa52727cab409541b7dd0e6d5a8d0bd4
diff --git a/drivers/corsa/BUCK b/drivers/corsa/BUCK
index 3fc9d5d..73a2549 100644
--- a/drivers/corsa/BUCK
+++ b/drivers/corsa/BUCK
@@ -5,8 +5,14 @@
'//protocols/openflow/api:onos-protocols-openflow-api',
]
+TEST_DEPS = [
+ '//lib:TEST_ADAPTERS',
+ '//core/api:onos-api-tests',
+]
+
osgi_jar_with_tests (
deps = COMPILE_DEPS,
+ test_deps = TEST_DEPS,
resources_root = 'src/main/resources',
resources = glob(['src/main/resources/**']),
)
diff --git a/drivers/corsa/src/test/java/org/onosproject/drivers/corsa/CorsaDriversLoaderTest.java b/drivers/corsa/src/test/java/org/onosproject/drivers/corsa/CorsaDriversLoaderTest.java
new file mode 100644
index 0000000..3c3ccda
--- /dev/null
+++ b/drivers/corsa/src/test/java/org/onosproject/drivers/corsa/CorsaDriversLoaderTest.java
@@ -0,0 +1,15 @@
+package org.onosproject.drivers.corsa;
+
+import org.junit.Before;
+import org.onosproject.net.driver.AbstractDriverLoaderTest;
+
+/**
+ * Corsa drivers loader test.
+ */
+public class CorsaDriversLoaderTest extends AbstractDriverLoaderTest {
+
+ @Before
+ public void setUp() {
+ loader = new CorsaDriversLoader();
+ }
+}