You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by mi...@apache.org on 2004/01/24 18:53:52 UTC
cvs commit: jakarta-tapestry/junit/context27/WEB-INF Bad2.html Bad2.jwc
mindbridge 2004/01/24 09:53:52
Modified: junit/mock-scripts TestDefaultParameterValues.xml
Added: junit/context27 Three.html
junit/context27/WEB-INF Bad2.html Bad2.jwc
Log:
Adding a unit test for required parameters with default values.
Revision Changes Path
1.1 jakarta-tapestry/junit/context27/Three.html
Index: Three.html
===================================================================
<html jwcid="@Shell" title="Three">
<body>
<span jwcid="@Bad2"/>
</body>
</html>
1.5 +19 -2 jakarta-tapestry/junit/mock-scripts/TestDefaultParameterValues.xml
Index: TestDefaultParameterValues.xml
===================================================================
RCS file: /home/cvs/jakarta-tapestry/junit/mock-scripts/TestDefaultParameterValues.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- TestDefaultParameterValues.xml 16 Oct 2003 17:55:14 -0000 1.4
+++ TestDefaultParameterValues.xml 24 Jan 2004 17:53:52 -0000 1.5
@@ -92,7 +92,6 @@
</assert-output>
</request>
-
<request>
@@ -108,6 +107,24 @@
<assert-output name="parameter must have default value">
<![CDATA[
Parameter 'intValue' must be required or have a default value as it uses direction 'auto'.
+]]>
+ </assert-output>
+ </request>
+
+
+ <request>
+ <parameter name="service" value="page/Three"/>
+
+ <assert-output name="Page Title">
+<![CDATA[
+<title>Exception</title>
+]]>
+ </assert-output>
+
+
+ <assert-output name="required parameter must not have default value">
+<![CDATA[
+Parameter intValue of component Three/$Bad2 is required and must not have a default value.
]]>
</assert-output>
</request>
1.1 jakarta-tapestry/junit/context27/WEB-INF/Bad2.html
<<Binary file>>
1.1 jakarta-tapestry/junit/context27/WEB-INF/Bad2.jwc
Index: Bad2.jwc
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: Bad2.jwc,v 1.1 2004/01/24 17:53:52 mindbridge Exp $ -->
<!DOCTYPE component-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 3.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">
<component-specification>
<parameter name="intValue" type="int" required="yes" default-value="42"/>
</component-specification>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org