Remove plugin dependencies
[ovsdb.git] / integrationtest / src / test / java / org / opendaylight / ovsdb / integrationtest / mdsal / MdsalIT.java
1 package org.opendaylight.ovsdb.integrationtest.mdsal;
2
3 import static org.ops4j.pax.exam.CoreOptions.mavenBundle;
4 import static org.ops4j.pax.exam.CoreOptions.options;
5 import static org.ops4j.pax.exam.CoreOptions.propagateSystemProperty;
6 import static org.ops4j.pax.exam.CoreOptions.systemProperty;
7
8 import javax.inject.Inject;
9 import org.junit.Test;
10 import org.junit.runner.RunWith;
11 import org.opendaylight.controller.sal.binding.api.BindingAwareBroker;
12 import org.opendaylight.controller.test.sal.binding.it.TestHelper;
13 import org.opendaylight.ovsdb.integrationtest.ConfigurationBundles;
14 import org.ops4j.pax.exam.Configuration;
15 import org.ops4j.pax.exam.Option;
16 import org.ops4j.pax.exam.junit.PaxExam;
17 import org.ops4j.pax.exam.util.PathUtils;
18 import org.osgi.framework.BundleContext;
19 import org.slf4j.Logger;
20 import org.slf4j.LoggerFactory;
21
22 @RunWith(PaxExam.class)
23 public class MdsalIT {
24     private static final Logger LOG = LoggerFactory.getLogger(MdsalIT.class);
25
26     @Inject
27     BundleContext ctx;
28
29     @Inject
30     BindingAwareBroker broker;
31
32     @Configuration
33     public Option[] config() {
34         return options(
35                 systemProperty("logback.configurationFile").value(
36                         "file:" + PathUtils.getBaseDir()
37                                 + "/src/test/resources/logback.xml"
38                 ),
39                 // To start OSGi console for inspection remotely
40                 systemProperty("osgi.console").value("2401"),
41
42                 propagateSystemProperty("ovsdbserver.ipaddress"),
43                 propagateSystemProperty("ovsdbserver.port"),
44
45                 mavenBundle("org.slf4j", "slf4j-api").versionAsInProject(),
46                 mavenBundle("org.slf4j", "log4j-over-slf4j").versionAsInProject(),
47                 mavenBundle("ch.qos.logback", "logback-core").versionAsInProject(),
48                 mavenBundle("ch.qos.logback", "logback-classic").versionAsInProject(),
49
50                 TestHelper.junitAndMockitoBundles(),
51                 TestHelper.mdSalCoreBundles(),
52                 TestHelper.configMinumumBundles(),
53                 TestHelper.baseModelBundles()
54         );
55     }
56
57     @Test
58     public void test1() {
59         LOG.info("We did it!");
60     }
61 }