1 package org.opendaylight.controller.sample.zeromq.test.it;
3 import static org.junit.Assert.*;
4 import static org.ops4j.pax.exam.CoreOptions.junitBundles;
5 import static org.ops4j.pax.exam.CoreOptions.mavenBundle;
6 import static org.ops4j.pax.exam.CoreOptions.options;
7 import static org.ops4j.pax.exam.CoreOptions.systemPackages;
8 import static org.ops4j.pax.exam.CoreOptions.systemProperty;
9 import static org.ops4j.pax.exam.CoreOptions.maven;
11 import java.util.Collection;
13 import javax.inject.Inject;
15 import org.junit.Test;
16 import org.junit.runner.RunWith;
17 import org.opendaylight.controller.sal.binding.api.BindingAwareBroker;
18 import org.ops4j.pax.exam.Configuration;
19 import org.ops4j.pax.exam.CoreOptions;
20 import org.ops4j.pax.exam.Option;
21 import org.ops4j.pax.exam.junit.PaxExam;
22 import org.osgi.framework.BundleContext;
23 import org.osgi.framework.InvalidSyntaxException;
24 import org.osgi.framework.ServiceReference;
26 @RunWith(PaxExam.class)
27 public class ServiceProviderController {
29 public static final String ODL = "org.opendaylight.controller";
30 public static final String YANG = "org.opendaylight.yangtools";
31 public static final String SAMPLE = "org.opendaylight.controller.samples";
34 public void properInitialized() throws Exception {
36 Thread.sleep(30000); // Waiting for services to get wired.
38 //assertTrue(consumer.createToast(WhiteBread.class, 5));
43 // BindingAwareBroker broker;
46 // ToastConsumer consumer;
52 public Option[] config() {
53 return options(systemProperty("osgi.console").value("2401"),
54 systemProperty("pub.port").value("5556"),
55 systemProperty("sub.port").value("5557"),
56 systemProperty("rpc.port").value("5554"),
57 systemProperty("pub.ip").value("localhost"),
58 mavenBundle("org.slf4j", "slf4j-api").versionAsInProject(), //
59 mavenBundle("org.slf4j", "log4j-over-slf4j").versionAsInProject(), //
60 mavenBundle("ch.qos.logback", "logback-core").versionAsInProject(), //
61 mavenBundle("ch.qos.logback", "logback-classic").versionAsInProject(), //
63 //mavenBundle(ODL, "sal-binding-broker-impl").versionAsInProject().update(), //
64 mavenBundle(ODL, "sal-common").versionAsInProject(), //
65 mavenBundle(ODL, "sal-common-api").versionAsInProject(),//
66 mavenBundle(ODL, "sal-common-impl").versionAsInProject(), //
67 mavenBundle(ODL, "sal-common-util").versionAsInProject(), //
68 mavenBundle(ODL, "sal-core-api").versionAsInProject().update(), //
69 mavenBundle(ODL, "sal-broker-impl").versionAsInProject(), //
70 mavenBundle(ODL, "sal-core-spi").versionAsInProject().update(), //
71 mavenBundle(ODL, "sal-connector-api").versionAsInProject(), //
72 mavenBundle(SAMPLE, "zeromq-test-provider").versionAsInProject(), //
73 mavenBundle(ODL, "sal-zeromq-connector").versionAsInProject(), //
74 mavenBundle(YANG, "concepts").versionAsInProject(),
75 mavenBundle(YANG, "yang-binding").versionAsInProject(), //
76 mavenBundle(YANG, "yang-common").versionAsInProject(), //
77 mavenBundle(YANG, "yang-data-api").versionAsInProject(), //
78 mavenBundle(YANG, "yang-model-api").versionAsInProject(), //
79 mavenBundle(YANG+".thirdparty", "xtend-lib-osgi").versionAsInProject(), //
80 mavenBundle("com.google.guava", "guava").versionAsInProject(), //
81 mavenBundle("org.jeromq", "jeromq").versionAsInProject(),