diff --git a/google-taglib/google-tagunit/WEB-INF/web.xml b/google-taglib/google-tagunit/WEB-INF/web.xml new file mode 100644 index 0000000..377552c --- /dev/null +++ b/google-taglib/google-tagunit/WEB-INF/web.xml @@ -0,0 +1,18 @@ + + + + google-tagunit + This webapp is a starting point for testing the Google Tag Library. + + TagUnitTestController + org.tagunit.controller.FrontController + + + TagUnitTestController + /test/servlet/* + + + index.html + + diff --git a/google-taglib/google-tagunit/index.html b/google-taglib/google-tagunit/index.html new file mode 100644 index 0000000..32b2591 --- /dev/null +++ b/google-taglib/google-tagunit/index.html @@ -0,0 +1,16 @@ + + + +Set Google Key + + + + +
+   +
+ + diff --git a/google-taglib/google-tagunit/index.jsp b/google-taglib/google-tagunit/index.jsp new file mode 100644 index 0000000..78cd9e7 --- /dev/null +++ b/google-taglib/google-tagunit/index.jsp @@ -0,0 +1,20 @@ +<% + // Copyright (c) 2002-2003, Erik C. Thauvin + // All rights reserved. + + String key = request.getParameter("key"); + + if ((key != null)&& (key.trim().length() > 0)) + { + pageContext.setAttribute("google_key", key, PageContext.APPLICATION_SCOPE); +%> + +<% + } + else + { +%> + <%@include file="index.html"%> +<% + } +%> diff --git a/google-taglib/google-tagunit/test/error.jsp b/google-taglib/google-tagunit/test/error.jsp new file mode 100644 index 0000000..e010225 --- /dev/null +++ b/google-taglib/google-tagunit/test/error.jsp @@ -0,0 +1,19 @@ +<%@ page isErrorPage="true" %> + +<%@ taglib uri="http://www.tagunit.org/tagunit/display" prefix="tagunit" %> + + + + + TagUnit - Error + + + + + +

Oops, there has been a problem...

+
<%= org.tagunit.util.ExceptionUtils.getStackTraceAsString(exception) %>
+ + + + \ No newline at end of file diff --git a/google-taglib/google-tagunit/test/google/cachedPage/testSpecification.jsp b/google-taglib/google-tagunit/test/google/cachedPage/testSpecification.jsp new file mode 100644 index 0000000..876b262 --- /dev/null +++ b/google-taglib/google-tagunit/test/google/cachedPage/testSpecification.jsp @@ -0,0 +1,5 @@ +<%@ taglib uri="http://www.tagunit.org/tagunit/core" prefix="tagunit" %> + + + + \ No newline at end of file diff --git a/google-taglib/google-tagunit/test/google/element/testSpecification.jsp b/google-taglib/google-tagunit/test/google/element/testSpecification.jsp new file mode 100644 index 0000000..43dd2ad --- /dev/null +++ b/google-taglib/google-tagunit/test/google/element/testSpecification.jsp @@ -0,0 +1,6 @@ +<%@ taglib uri="http://www.tagunit.org/tagunit/core" prefix="tagunit" %> + + + + + diff --git a/google-taglib/google-tagunit/test/google/endIndex/testSpecification.jsp b/google-taglib/google-tagunit/test/google/endIndex/testSpecification.jsp new file mode 100644 index 0000000..630a4e5 --- /dev/null +++ b/google-taglib/google-tagunit/test/google/endIndex/testSpecification.jsp @@ -0,0 +1,3 @@ +<%@ taglib uri="http://www.tagunit.org/tagunit/core" prefix="tagunit" %> + + \ No newline at end of file diff --git a/google-taglib/google-tagunit/test/google/estimatedTotal/testSpecification.jsp b/google-taglib/google-tagunit/test/google/estimatedTotal/testSpecification.jsp new file mode 100644 index 0000000..630a4e5 --- /dev/null +++ b/google-taglib/google-tagunit/test/google/estimatedTotal/testSpecification.jsp @@ -0,0 +1,3 @@ +<%@ taglib uri="http://www.tagunit.org/tagunit/core" prefix="tagunit" %> + + \ No newline at end of file diff --git a/google-taglib/google-tagunit/test/google/index.jsp b/google-taglib/google-tagunit/test/google/index.jsp new file mode 100644 index 0000000..76f3426 --- /dev/null +++ b/google-taglib/google-tagunit/test/google/index.jsp @@ -0,0 +1,7 @@ +<%@ taglib uri="http://www.tagunit.org/tagunit/core" prefix="tagunit" %> + + + + + + \ No newline at end of file diff --git a/google-taglib/google-tagunit/test/google/next/testSpecification.jsp b/google-taglib/google-tagunit/test/google/next/testSpecification.jsp new file mode 100644 index 0000000..f8fa598 --- /dev/null +++ b/google-taglib/google-tagunit/test/google/next/testSpecification.jsp @@ -0,0 +1,7 @@ +<%@ taglib uri="http://www.tagunit.org/tagunit/core" prefix="tagunit" %> + + + + + + \ No newline at end of file diff --git a/google-taglib/google-tagunit/test/google/previous/testSpecification.jsp b/google-taglib/google-tagunit/test/google/previous/testSpecification.jsp new file mode 100644 index 0000000..f8fa598 --- /dev/null +++ b/google-taglib/google-tagunit/test/google/previous/testSpecification.jsp @@ -0,0 +1,7 @@ +<%@ taglib uri="http://www.tagunit.org/tagunit/core" prefix="tagunit" %> + + + + + + \ No newline at end of file diff --git a/google-taglib/google-tagunit/test/google/search/testSpecification.jsp b/google-taglib/google-tagunit/test/google/search/testSpecification.jsp new file mode 100644 index 0000000..22e1ce2 --- /dev/null +++ b/google-taglib/google-tagunit/test/google/search/testSpecification.jsp @@ -0,0 +1,14 @@ +<%@ taglib uri="http://www.tagunit.org/tagunit/core" prefix="tagunit" %> + + + + + + + + + + + + + \ No newline at end of file diff --git a/google-taglib/google-tagunit/test/google/searchComments/testSpecification.jsp b/google-taglib/google-tagunit/test/google/searchComments/testSpecification.jsp new file mode 100644 index 0000000..630a4e5 --- /dev/null +++ b/google-taglib/google-tagunit/test/google/searchComments/testSpecification.jsp @@ -0,0 +1,3 @@ +<%@ taglib uri="http://www.tagunit.org/tagunit/core" prefix="tagunit" %> + + \ No newline at end of file diff --git a/google-taglib/google-tagunit/test/google/searchQuery/testSpecification.jsp b/google-taglib/google-tagunit/test/google/searchQuery/testSpecification.jsp new file mode 100644 index 0000000..ca7e9c2 --- /dev/null +++ b/google-taglib/google-tagunit/test/google/searchQuery/testSpecification.jsp @@ -0,0 +1,5 @@ +<%@ taglib uri="http://www.tagunit.org/tagunit/core" prefix="tagunit" %> + + + + \ No newline at end of file diff --git a/google-taglib/google-tagunit/test/google/searchResult/testSpecification.jsp b/google-taglib/google-tagunit/test/google/searchResult/testSpecification.jsp new file mode 100644 index 0000000..58460a5 --- /dev/null +++ b/google-taglib/google-tagunit/test/google/searchResult/testSpecification.jsp @@ -0,0 +1,5 @@ +<%@ taglib uri="http://www.tagunit.org/tagunit/core" prefix="tagunit" %> + + + + \ No newline at end of file diff --git a/google-taglib/google-tagunit/test/google/searchTime/testSpecification.jsp b/google-taglib/google-tagunit/test/google/searchTime/testSpecification.jsp new file mode 100644 index 0000000..630a4e5 --- /dev/null +++ b/google-taglib/google-tagunit/test/google/searchTime/testSpecification.jsp @@ -0,0 +1,3 @@ +<%@ taglib uri="http://www.tagunit.org/tagunit/core" prefix="tagunit" %> + + \ No newline at end of file diff --git a/google-taglib/google-tagunit/test/google/searchTips/testSpecification.jsp b/google-taglib/google-tagunit/test/google/searchTips/testSpecification.jsp new file mode 100644 index 0000000..630a4e5 --- /dev/null +++ b/google-taglib/google-tagunit/test/google/searchTips/testSpecification.jsp @@ -0,0 +1,3 @@ +<%@ taglib uri="http://www.tagunit.org/tagunit/core" prefix="tagunit" %> + + \ No newline at end of file diff --git a/google-taglib/google-tagunit/test/google/spelling/testSpecification.jsp b/google-taglib/google-tagunit/test/google/spelling/testSpecification.jsp new file mode 100644 index 0000000..876b262 --- /dev/null +++ b/google-taglib/google-tagunit/test/google/spelling/testSpecification.jsp @@ -0,0 +1,5 @@ +<%@ taglib uri="http://www.tagunit.org/tagunit/core" prefix="tagunit" %> + + + + \ No newline at end of file diff --git a/google-taglib/google-tagunit/test/google/startIndex/testSpecification.jsp b/google-taglib/google-tagunit/test/google/startIndex/testSpecification.jsp new file mode 100644 index 0000000..630a4e5 --- /dev/null +++ b/google-taglib/google-tagunit/test/google/startIndex/testSpecification.jsp @@ -0,0 +1,3 @@ +<%@ taglib uri="http://www.tagunit.org/tagunit/core" prefix="tagunit" %> + + \ No newline at end of file diff --git a/google-taglib/google-tagunit/test/images/spacer.gif b/google-taglib/google-tagunit/test/images/spacer.gif new file mode 100644 index 0000000..e44f8f0 Binary files /dev/null and b/google-taglib/google-tagunit/test/images/spacer.gif differ diff --git a/google-taglib/google-tagunit/test/images/tagunit.gif b/google-taglib/google-tagunit/test/images/tagunit.gif new file mode 100644 index 0000000..825917f Binary files /dev/null and b/google-taglib/google-tagunit/test/images/tagunit.gif differ diff --git a/google-taglib/google-tagunit/test/images/white-separator.gif b/google-taglib/google-tagunit/test/images/white-separator.gif new file mode 100644 index 0000000..38b95b0 Binary files /dev/null and b/google-taglib/google-tagunit/test/images/white-separator.gif differ diff --git a/google-taglib/google-tagunit/test/index.jsp b/google-taglib/google-tagunit/test/index.jsp new file mode 100644 index 0000000..b2b2245 --- /dev/null +++ b/google-taglib/google-tagunit/test/index.jsp @@ -0,0 +1,17 @@ + <%@ taglib uri="http://www.tagunit.org/tagunit/core" prefix="tagunit" %> + +<%-- + Tests for TagUnit tag libraries + ------------------------------- + This page contains the tests required to automatically test the basics of + the tag libraries that are a part of the TagUnit framework + +--%> + + + + + + + + \ No newline at end of file diff --git a/google-taglib/google-tagunit/test/license.html b/google-taglib/google-tagunit/test/license.html new file mode 100644 index 0000000..9729cd0 --- /dev/null +++ b/google-taglib/google-tagunit/test/license.html @@ -0,0 +1,45 @@ + + + + TagUnit + + + + + +

+

TagUnit license information

+

+ +
Copyright (c) 2002, Simon Brown
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+  - Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+
+  - Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in
+    the documentation and/or other materials provided with the
+    distribution.
+
+  - Neither the name of TagUnit nor the names of its contributors may
+    be used to endorse or promote products derived from this software
+    without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+ + + \ No newline at end of file diff --git a/google-taglib/google-tagunit/test/page.css b/google-taglib/google-tagunit/test/page.css new file mode 100644 index 0000000..e5d02f8 --- /dev/null +++ b/google-taglib/google-tagunit/test/page.css @@ -0,0 +1,50 @@ +body, p, table, thead, tbody { + font-family: verdana, arial, helvetica; + font-size: 8pt; + font-style: normal; + font-weight: normal; + text-align: left +} + +h1 { + font-size: 18pt; + font-weight: bold; +} + +h2 { + font-size: 14pt; + font-weight: bold; +} + +a:link, a:visited, a:active { + color: #000000; +} + +.pass { + color: 00CC00; +} + +.warning { + color: FF9900; +} + +.fail { + color: #CC0000; +} + +.error { + color: #CC0000; +} + +.message { + font-size: 8pt; +} + +.banner { + font-size: 8pt; + border-top: solid black 2px; + border-right: solid black 2px; + border-bottom: solid black 2px; + border-left: solid black 2px; + color: white; +} \ No newline at end of file diff --git a/google-taglib/google-tagunit/test/results.jsp b/google-taglib/google-tagunit/test/results.jsp new file mode 100644 index 0000000..b78b4cd --- /dev/null +++ b/google-taglib/google-tagunit/test/results.jsp @@ -0,0 +1,206 @@ + + +<%@ page import="org.tagunit.*" %> +<%@ page errorPage="error.jsp" %> + +<% +String color = "#6699CC"; +TestContextContainer testContext = (TestContextContainer)session.getAttribute(Constants.TEST_CONTEXT); +if (testContext != null && testContext.getStatus().equals(TestContext.PASS)) { + color = "#00CC00"; +} else if (testContext != null && testContext.getStatus().equals(TestContext.WARNING)) { + color = "#CC6600"; +} else if (testContext != null && (testContext.getStatus().equals(TestContext.FAIL) || testContext.getStatus().equals(TestContext.ERROR))) { + color = "#CC0000"; +} +%> + +<%@ taglib uri="http://www.tagunit.org/tagunit/display" prefix="tagunit" %> + + + + + TagUnit - Test Results + + + + + + + + + + + + + + + + + + +
+

Test results

+
+ Hide passes + | + Hide warnings + | + Show all +
+ Ignore Warnings - + Yes + | + No +
+ + +
+
+
+ + + + +
+ + + + + + +
+ + + + + + +
+ Passes + + +
+ <% + if (!org.tagunit.TagUnitProperties.getInstance().getIgnoreWarnings()) { + %> + + + + + + +
+ Warnings + + +
+ <% + } + %> + + + + + + +
+ Failures + + +
+ + + + + + +
+ Errors + + +
+ + + + + + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
+ + + <% + if (result instanceof org.tagunit.TagTestContext) { + org.tagunit.TagTestContext ttc = (org.tagunit.TagTestContext)result; + out.print(""); + out.print(""); + } + %> + + <% + if (result instanceof org.tagunit.TagTestContext) { + out.print(""); + } + %> + + + + Pass + Warning + Fail + Error + +
Warning :  
Failure :  
Error :  
+ +
+
+ +
+ License +
+ + + + diff --git a/google-taglib/lib/tagunit.jar b/google-taglib/lib/tagunit.jar new file mode 100644 index 0000000..7e87967 Binary files /dev/null and b/google-taglib/lib/tagunit.jar differ diff --git a/google-taglib/licenses/LICENSE-tagunit.txt b/google-taglib/licenses/LICENSE-tagunit.txt new file mode 100644 index 0000000..9324147 --- /dev/null +++ b/google-taglib/licenses/LICENSE-tagunit.txt @@ -0,0 +1,29 @@ +Copyright (c) 2002/2003, Simon Brown +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + + - Neither the name of TagUnit nor the names of its contributors may + be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file