fixed javax websocket OSGi test
Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
parent
1176b267b5
commit
6590dfe832
|
@ -54,7 +54,7 @@ public class ServletContainerInitializersStarter extends AbstractLifeCycle imple
|
|||
List<ContainerInitializer> initializers = (List<ContainerInitializer>)_context.getAttribute(AnnotationConfiguration.CONTAINER_INITIALIZERS);
|
||||
if (initializers == null)
|
||||
return;
|
||||
|
||||
|
||||
for (ContainerInitializer i : initializers)
|
||||
{
|
||||
try
|
||||
|
|
|
@ -77,7 +77,7 @@ public class TestJettyOSGiBootWithJavaxWebSocket
|
|||
options.add(systemProperty("org.ops4j.pax.logging.DefaultServiceLog.level").value(LOG_LEVEL));
|
||||
options.add(systemProperty("org.eclipse.jetty.LEVEL").value(LOG_LEVEL));
|
||||
options.addAll(jspDependencies());
|
||||
options.addAll(annotationDependencies());
|
||||
options.addAll(testJettyWebApp());
|
||||
options.addAll(extraDependencies());
|
||||
return options.toArray(new Option[options.size()]);
|
||||
}
|
||||
|
@ -88,14 +88,10 @@ public class TestJettyOSGiBootWithJavaxWebSocket
|
|||
return TestOSGiUtil.jspDependencies();
|
||||
}
|
||||
|
||||
public static List<Option> annotationDependencies()
|
||||
public static List<Option> testJettyWebApp()
|
||||
{
|
||||
List<Option> res = new ArrayList<>();
|
||||
res.add(mavenBundle().groupId("com.sun.activation").artifactId("javax.activation").version("1.2.0").noStart());
|
||||
res.add(mavenBundle().groupId("org.eclipse.jetty.orbit").artifactId("javax.mail.glassfish").version("1.4.1.v201005082020").noStart());
|
||||
res.add(mavenBundle().groupId("org.eclipse.jetty.tests").artifactId("test-mock-resources").versionAsInProject());
|
||||
//test webapp bundle
|
||||
res.add(mavenBundle().groupId("org.eclipse.jetty").artifactId("test-jetty-webapp").classifier("webbundle").versionAsInProject());
|
||||
res.add(mavenBundle().groupId("org.eclipse.jetty").artifactId("test-jetty-webapp").classifier("webbundle").versionAsInProject().noStart());
|
||||
return res;
|
||||
}
|
||||
public static List<Option> extraDependencies()
|
||||
|
@ -114,6 +110,7 @@ public class TestJettyOSGiBootWithJavaxWebSocket
|
|||
startBundle(bundleContext, "org.eclipse.jetty.websocket.javax.websocket.common");
|
||||
startBundle(bundleContext, "org.eclipse.jetty.websocket.javax.websocket.client");
|
||||
startBundle(bundleContext, "org.eclipse.jetty.websocket.javax.websocket.server");
|
||||
startBundle(bundleContext, "org.eclipse.jetty.tests.webapp");
|
||||
|
||||
TestOSGiUtil.assertAllBundlesActiveOrResolved(bundleContext);
|
||||
TestOSGiUtil.debugBundles(bundleContext);
|
||||
|
@ -127,6 +124,7 @@ public class TestJettyOSGiBootWithJavaxWebSocket
|
|||
startBundle(bundleContext, "org.eclipse.jetty.websocket.javax.websocket.common");
|
||||
startBundle(bundleContext, "org.eclipse.jetty.websocket.javax.websocket.client");
|
||||
startBundle(bundleContext, "org.eclipse.jetty.websocket.javax.websocket.server");
|
||||
startBundle(bundleContext, "org.eclipse.jetty.tests.webapp");
|
||||
|
||||
String port = System.getProperty("boot.javax.websocket.port");
|
||||
assertNotNull(port);
|
||||
|
|
|
@ -67,7 +67,7 @@ public class TestJettyOSGiBootWithWebSocket
|
|||
options.add(systemProperty("org.ops4j.pax.logging.DefaultServiceLog.level").value(LOG_LEVEL));
|
||||
options.add(systemProperty("org.eclipse.jetty.LEVEL").value(LOG_LEVEL));
|
||||
options.addAll(jspDependencies());
|
||||
options.addAll(annotationDependencies());
|
||||
options.addAll(testJettyWebApp());
|
||||
return options.toArray(new Option[options.size()]);
|
||||
}
|
||||
|
||||
|
@ -76,11 +76,9 @@ public class TestJettyOSGiBootWithWebSocket
|
|||
return TestOSGiUtil.jspDependencies();
|
||||
}
|
||||
|
||||
public static List<Option> annotationDependencies()
|
||||
public static List<Option> testJettyWebApp()
|
||||
{
|
||||
List<Option> res = new ArrayList<>();
|
||||
res.add(mavenBundle().groupId( "org.eclipse.jetty.orbit" ).artifactId( "javax.mail.glassfish" ).version( "1.4.1.v201005082020" ).noStart());
|
||||
res.add(mavenBundle().groupId("org.eclipse.jetty.tests").artifactId("test-mock-resources").versionAsInProject().noStart());
|
||||
//test webapp bundle
|
||||
res.add(mavenBundle().groupId("org.eclipse.jetty").artifactId("test-jetty-webapp").classifier("webbundle").versionAsInProject());
|
||||
return res;
|
||||
|
|
Loading…
Reference in New Issue