From: Kai Moritz Date: Fri, 1 Jun 2012 23:31:59 +0000 (+0200) Subject: Statische Test-Datei (eine CSS-Datei) zu den Test-Beispielen hinzugefügt X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=50d98cb69e831b62993a87ed6620514d4b147683;p=percentcodec Statische Test-Datei (eine CSS-Datei) zu den Test-Beispielen hinzugefügt --- diff --git a/cachecontrol-example-jsp/src/main/webapp/WEB-INF/web.xml b/cachecontrol-example-jsp/src/main/webapp/WEB-INF/web.xml index f454b87f..60808729 100644 --- a/cachecontrol-example-jsp/src/main/webapp/WEB-INF/web.xml +++ b/cachecontrol-example-jsp/src/main/webapp/WEB-INF/web.xml @@ -32,6 +32,9 @@ accelerator *.jsp - + + accelerator + *.css + diff --git a/cachecontrol-example-jsp/src/main/webapp/default.css b/cachecontrol-example-jsp/src/main/webapp/default.css new file mode 100644 index 00000000..e04bba27 --- /dev/null +++ b/cachecontrol-example-jsp/src/main/webapp/default.css @@ -0,0 +1,7 @@ +body { + background-color: #ccc; + color: #444; +} +h1,h2,h3,h4 { + color: #000; +} \ No newline at end of file diff --git a/cachecontrol-example-jsp/src/main/webapp/page-with-include.jsp b/cachecontrol-example-jsp/src/main/webapp/page-with-include.jsp index 3347af77..ba581a46 100644 --- a/cachecontrol-example-jsp/src/main/webapp/page-with-include.jsp +++ b/cachecontrol-example-jsp/src/main/webapp/page-with-include.jsp @@ -6,6 +6,7 @@ Page with include +

Hello World!

diff --git a/cachecontrol-example-jsp/src/main/webapp/simple-page.jsp b/cachecontrol-example-jsp/src/main/webapp/simple-page.jsp index 23e57793..880d7611 100644 --- a/cachecontrol-example-jsp/src/main/webapp/simple-page.jsp +++ b/cachecontrol-example-jsp/src/main/webapp/simple-page.jsp @@ -5,6 +5,7 @@ Simple Page +

Hello World!

diff --git a/cachecontrol-example-jsp/src/test/java/de/halbekunst/cachecontrol/examples/jsp/JspTest.java b/cachecontrol-example-jsp/src/test/java/de/halbekunst/cachecontrol/examples/jsp/JspTest.java index 26225ab9..9861068b 100644 --- a/cachecontrol-example-jsp/src/test/java/de/halbekunst/cachecontrol/examples/jsp/JspTest.java +++ b/cachecontrol-example-jsp/src/test/java/de/halbekunst/cachecontrol/examples/jsp/JspTest.java @@ -2,7 +2,6 @@ package de.halbekunst.cachecontrol.examples.jsp; import de.halbekunst.juplo.test.HttpTestCase; import com.meterware.httpunit.WebResponse; -import com.meterware.servletunit.InvocationContext; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -41,4 +40,11 @@ public class JspTest extends HttpTestCase { log.info("Title:\t\t{}", response.getTitle()); log.debug("Text:\t\t{}", response.getText()); } + + @Test + public void testStaticContent() throws Exception { + WebResponse response = executeRequest("http://localhost:8080/default.css"); + log.info("Title:\t\t{}", response.getTitle()); + log.debug("Text:\t\t{}", response.getText()); + } }