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:
parent
067fbcba8d
commit
38aaf38f2d
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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()));
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -2,6 +2,8 @@
|
|||
# JAAS Feature
|
||||
#
|
||||
|
||||
DEPEND=server
|
||||
|
||||
# JAAS jars
|
||||
LIB=lib/jetty-jaas-${jetty.version}.jar
|
||||
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
#
|
||||
# Jetty Servlet Module
|
||||
#
|
||||
|
||||
DEPEND=servlet
|
||||
|
||||
LIB=lib/jsp/*.jar
|
||||
|
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue