jetty-start / updating test case module files.

+ updated test modules are a copy of what is being used in the
  distribution right now.
This commit is contained in:
Joakim Erdfelt 2013-08-26 15:44:33 -07:00
parent 067fbcba8d
commit 38aaf38f2d
16 changed files with 58 additions and 4 deletions

View File

@ -46,6 +46,6 @@ public class ModuleTest
Assert.assertThat("Module Xmls Size",Module.getXmls().size(),is(1));
Assert.assertThat("Module Xmls",Module.getXmls(),contains("etc/jetty-websockets.xml"));
Assert.assertThat("Module Options Size",Module.getLibs().size(),is(1));
Assert.assertThat("Module Options",Module.getLibs(),contains("lib/websockets/*.jar"));
Assert.assertThat("Module Options",Module.getLibs(),contains("lib/websocket/*.jar"));
}
}

View File

@ -42,7 +42,7 @@ public class ModulesTest
Modules modules = new Modules();
modules.registerAll(basehome);
Assert.assertThat("Module count",modules.count(),is(26));
Assert.assertThat("Module count",modules.count(),is(29));
}
@Test
@ -156,7 +156,7 @@ public class ModulesTest
expectedLibs.add("lib/jetty-plus-${jetty.version}.jar");
expectedLibs.add("lib/jetty-annotations-${jetty.version}.jar");
expectedLibs.add("lib/annotations/*.jar");
expectedLibs.add("lib/websockets/*.jar");
expectedLibs.add("lib/websocket/*.jar");
List<String> actualLibs = modules.normalizeLibs(active);
Assert.assertThat("Resolved Libs: " + actualLibs,actualLibs,contains(expectedLibs.toArray()));

View File

@ -25,6 +25,15 @@ LIB|${jetty.home}/lib/jetty-xml-TEST.jar
LIB|${jetty.home}/lib/jndi/javax.activation-1.1.jar
LIB|${jetty.home}/lib/jndi/javax.transaction-api-1.2.jar
LIB|${jetty.home}/lib/servlet-api-3.1.jar
LIB|${jetty.home}/lib/websocket/javax.websocket-api-1.0.jar
LIB|${jetty.home}/lib/websocket/javax-websocket-client-impl-TEST.jar
LIB|${jetty.home}/lib/websocket/javax-websocket-server-impl-TEST.jar
LIB|${jetty.home}/lib/websocket/websocket-api-TEST.jar
LIB|${jetty.home}/lib/websocket/websocket-client-TEST.jar
LIB|${jetty.home}/lib/websocket/websocket-common-TEST.jar
LIB|${jetty.home}/lib/websocket/websocket-server-TEST.jar
LIB|${jetty.home}/lib/websocket/websocket-servlet-TEST.jar
# The Properties we expect (order is irrelevant)
# PROP|jetty.port=9090

View File

@ -24,6 +24,14 @@ LIB|${jetty.home}/lib/jetty-xml-TEST.jar
LIB|${jetty.home}/lib/jndi/javax.activation-1.1.jar
LIB|${jetty.home}/lib/jndi/javax.transaction-api-1.2.jar
LIB|${jetty.home}/lib/servlet-api-3.1.jar
LIB|${jetty.home}/lib/websocket/javax.websocket-api-1.0.jar
LIB|${jetty.home}/lib/websocket/javax-websocket-client-impl-TEST.jar
LIB|${jetty.home}/lib/websocket/javax-websocket-server-impl-TEST.jar
LIB|${jetty.home}/lib/websocket/websocket-api-TEST.jar
LIB|${jetty.home}/lib/websocket/websocket-client-TEST.jar
LIB|${jetty.home}/lib/websocket/websocket-common-TEST.jar
LIB|${jetty.home}/lib/websocket/websocket-server-TEST.jar
LIB|${jetty.home}/lib/websocket/websocket-servlet-TEST.jar
# The Properties we expect (order is irrelevant)
PROP|jetty.port=9090

View File

@ -23,6 +23,14 @@ LIB|${jetty.home}/lib/jetty-xml-TEST.jar
LIB|${jetty.home}/lib/jndi/javax.activation-1.1.jar
LIB|${jetty.home}/lib/jndi/javax.transaction-api-1.2.jar
LIB|${jetty.home}/lib/servlet-api-3.1.jar
LIB|${jetty.home}/lib/websocket/javax.websocket-api-1.0.jar
LIB|${jetty.home}/lib/websocket/javax-websocket-client-impl-TEST.jar
LIB|${jetty.home}/lib/websocket/javax-websocket-server-impl-TEST.jar
LIB|${jetty.home}/lib/websocket/websocket-api-TEST.jar
LIB|${jetty.home}/lib/websocket/websocket-client-TEST.jar
LIB|${jetty.home}/lib/websocket/websocket-common-TEST.jar
LIB|${jetty.home}/lib/websocket/websocket-server-TEST.jar
LIB|${jetty.home}/lib/websocket/websocket-servlet-TEST.jar
# The Properties we expect (order is irrelevant)
PROP|jetty.port=12345

View File

@ -0,0 +1,15 @@
#
# Jetty Demo Module
#
DEPEND=jndi
DEPEND=jaas
DEPEND=rewrite
DEPEND=client
DEPEND=annotations
DEPEND=websocket
LIB=demo/lib/*.jar
demo/test-realm.xml
demo/jetty-demo.xml

View File

@ -2,6 +2,8 @@
# JAAS Feature
#
DEPEND=server
# JAAS jars
LIB=lib/jetty-jaas-${jetty.version}.jar

View File

@ -0,0 +1,8 @@
#
# Jetty Servlet Module
#
DEPEND=servlet
LIB=lib/jsp/*.jar

View File

@ -0,0 +1,4 @@
DOWNLOAD=http://repo1.maven.org/maven2/org/mortbay/jetty/npn/npn-boot/1.1.5.v20130313/npn-boot-1.1.5.v20130313.jar:lib/npn/npn-boot-1.1.5.v20130313.jar
BOOTLIB=-Xbootclasspath/p:lib/npn/npn-boot-1.1.5.v20130313.jar

View File

@ -7,7 +7,7 @@ DEPEND=server
DEPEND=annotations
# WebSocket needs websocket jars (as defined in start.config)
LIB=lib/websockets/*.jar
LIB=lib/websocket/*.jar
# WebSocket needs websocket configuration
etc/jetty-websockets.xml