From: Fredrik Tolf Date: Tue, 13 Oct 2009 04:51:14 +0000 (+0200) Subject: Removed the primitive test code. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=69f1e62ee8f7c8d26eb89db56dc59895f8be8bfe;p=jsvc.git Removed the primitive test code. --- diff --git a/build.xml b/build.xml index b42373a..c51aa71 100644 --- a/build.xml +++ b/build.xml @@ -13,7 +13,6 @@ - @@ -36,23 +35,6 @@ - - - - - - - - - - - - - - - - - diff --git a/etc/test.jsvc.properties b/etc/test.jsvc.properties deleted file mode 100644 index 2a50054..0000000 --- a/etc/test.jsvc.properties +++ /dev/null @@ -1,2 +0,0 @@ -jsvc.j2ee.appname = JSvc Test War -jsvc.bootstrap = dolda.jsvc.test.Bootstrap diff --git a/src/dolda/jsvc/test/Bootstrap.java b/src/dolda/jsvc/test/Bootstrap.java deleted file mode 100644 index ad4c38f..0000000 --- a/src/dolda/jsvc/test/Bootstrap.java +++ /dev/null @@ -1,15 +0,0 @@ -package dolda.jsvc.test; - -import dolda.jsvc.*; -import dolda.jsvc.util.*; - -public class Bootstrap { - public static Responder responder() { - Multiplexer root = new Multiplexer(); - root.file("test", new TestResponder()); - root.file("", new StaticContent(Bootstrap.class, "static/index.html", false, "text/html")); - root.file("css", new StaticContent(Bootstrap.class, "static/test.css", false, "text/css")); - root.dir("foo", new StaticContent(Bootstrap.class, "static/foo", true, "text/plain; charset=utf-8")); - return(Misc.stdroot(root)); - } -} diff --git a/src/dolda/jsvc/test/TestResponder.java b/src/dolda/jsvc/test/TestResponder.java deleted file mode 100644 index e765d2e..0000000 --- a/src/dolda/jsvc/test/TestResponder.java +++ /dev/null @@ -1,19 +0,0 @@ -package dolda.jsvc.test; - -import dolda.jsvc.*; -import dolda.jsvc.util.*; -import java.io.*; - -public class TestResponder extends SimpleWriter { - public TestResponder() { - super("plain"); - } - - public void respond(Request req, PrintWriter out) { - out.println(req.url()); - out.println(req.path()); - out.println(req.inheaders()); - out.println(req.ctx().starttime()); - out.println(req.remoteaddr() + "<->" + req.localaddr()); - } -} diff --git a/src/dolda/jsvc/test/static/foo/a b/src/dolda/jsvc/test/static/foo/a deleted file mode 100644 index 6e1f517..0000000 --- a/src/dolda/jsvc/test/static/foo/a +++ /dev/null @@ -1 +0,0 @@ -Test A diff --git a/src/dolda/jsvc/test/static/foo/b b/src/dolda/jsvc/test/static/foo/b deleted file mode 100644 index d4e395a..0000000 --- a/src/dolda/jsvc/test/static/foo/b +++ /dev/null @@ -1 +0,0 @@ -Test B diff --git a/src/dolda/jsvc/test/static/index.html b/src/dolda/jsvc/test/static/index.html deleted file mode 100644 index 8553fc9..0000000 --- a/src/dolda/jsvc/test/static/index.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - -Test - - - -

Hello world!

-

Test

- - diff --git a/src/dolda/jsvc/test/static/test.css b/src/dolda/jsvc/test/static/test.css deleted file mode 100644 index eb67f25..0000000 --- a/src/dolda/jsvc/test/static/test.css +++ /dev/null @@ -1,3 +0,0 @@ -body { - font-family: sans; -}