415830 - jetty-start / add more TestUseCases for home + base + modules

configurations

+ Adding base example of enabling DB support
This commit is contained in:
Joakim Erdfelt 2013-08-26 07:12:43 -07:00
parent 3970295804
commit 5d05147cb0
9 changed files with 56 additions and 1 deletions

View File

@ -151,7 +151,7 @@ public class ConfigurationAssert
for (String expected : expectedSet)
{
char indicator = actualSet.contains(expected)?' ':'>';
err.printf("%s| %s",indicator,expected);
err.printf("%s| %s%n",indicator,expected);
}
err.flush();
Assert.fail(message.toString());

View File

@ -56,4 +56,10 @@ public class TestUseCases
{
assertUseCase("home","base.jmx","assert-jmx.txt");
}
@Test
public void testWithDatabase() throws Exception
{
assertUseCase("home","base.with.db","assert-with-db.txt");
}
}

View File

@ -0,0 +1,31 @@
# The XMLs we expect (order is important)
XML|${jetty.home}/etc/jetty.xml
XML|${jetty.home}/etc/jetty-http.xml
XML|${jetty.home}/etc/jetty-plus.xml
XML|${jetty.home}/etc/jetty-deploy.xml
XML|${jetty.base}/etc/jetty-db.xml
# The LIBs we expect (order is irrelevant)
LIB|${jetty.home}/lib/jetty-http-TEST.jar
LIB|${jetty.home}/lib/jetty-io-TEST.jar
LIB|${jetty.home}/lib/jetty-schemas-3.1.jar
LIB|${jetty.home}/lib/jetty-server-TEST.jar
LIB|${jetty.home}/lib/jetty-util-TEST.jar
LIB|${jetty.home}/lib/jetty-xml-TEST.jar
LIB|${jetty.home}/lib/servlet-api-3.1.jar
LIB|${jetty.home}/lib/jetty-jndi-TEST.jar
LIB|${jetty.home}/lib/jetty-continuation-TEST.jar
LIB|${jetty.home}/lib/jndi/javax.transaction-api-1.2.jar
LIB|${jetty.home}/lib/jetty-plus-TEST.jar
LIB|${jetty.home}/lib/jetty-deploy-TEST.jar
LIB|${jetty.home}/lib/jetty-security-TEST.jar
LIB|${jetty.home}/lib/jndi/javax.activation-1.1.jar
LIB|${jetty.home}/lib/jetty-webapp-TEST.jar
LIB|${jetty.home}/lib/jetty-servlet-TEST.jar
LIB|${jetty.base}/lib/db/mysql-driver.jar
LIB|${jetty.base}/lib/db/bonecp.jar
# The Properties we expect (order is irrelevant)
PROP|jetty.port=9090
PROP|mysql.user=frank
PROP|mysql.pass=secret

View File

@ -0,0 +1 @@
<!-- build up org.eclipse.jetty.plus.jndi.Resource here -->

View File

@ -0,0 +1,8 @@
DEPEND=deploy
DEPEND=jndi
DEPEND=plus
LIB=lib/db/*.jar
etc/jetty-db.xml

View File

@ -0,0 +1,7 @@
--module=server,http,db
mysql.user=frank
mysql.pass=secret
jetty.port=9090

View File

@ -2,6 +2,8 @@
# Deploy Feature
#
DEPEND=webapp
# Deploy jars
LIB=lib/jetty-deploy-${jetty.version}.jar