Commits

Anonymous committed 5c91878

o added expected test results

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@619e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (3)

tiger/src/test/com/opensymphony/xwork/apt/expected/ConversionTestAction-conversion.properties

+# Generated automatically. Do not edit!
+convertDouble=com.opensymphony.xwork.util.XWorkBasicConverter
+Collection_users=java.lang.String
+Map_keyValues=java.math.BigInteger

tiger/src/test/com/opensymphony/xwork/apt/expected/SimpleValidationAction-validation.xml

+<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
+<validators>
+
+	<!-- Generated automatically. Do not edit! -->
+
+	<!-- ALL FIELD VALIDATORS -->
+	<field name="baz">
+		<field-validator type="int" short-circuit="true">
+			<param name="min">0</param>
+			<message key="baz.range">Could not find baz.range!</message>
+		</field-validator>
+	</field>
+
+	<field name="bar">
+		<field-validator type="required" short-circuit="true">
+			<message>You must enter a value for bar.</message>
+		</field-validator>
+		<field-validator type="int" short-circuit="true">
+			<param name="min">6</param>
+			<param name="max">10</param>
+			<message>bar must be between ${min} and ${max}, current value is ${bar}.</message>
+		</field-validator>
+	</field>
+
+	<field name="needstringlength">
+		<field-validator type="stringlength" short-circuit="true">
+			<param name="minLength">10</param>
+			<param name="maxLength">12</param>
+			<message>You must enter a stringlength.</message>
+	</field-validator>
+	</field>
+
+	<field name="date">
+		<field-validator type="date" short-circuit="true">
+			<param name="min">12/22/2002</param>
+			<param name="max">12/25/2002</param>
+			<message>The date must be between 12-22-2002 and 12-25-2002.</message>
+		</field-validator>
+	</field>
+
+
+	<!-- ALL OTHER VALIDATORS -->
+	<validator type="expression" short-circuit="true">
+		<param name="expression">foo &gt; 1</param>
+		<message>Foo must be greater than Bar 1. Foo = ${foo}, Bar = ${bar}.</message>
+	</validator>
+
+	<validator type="expression" short-circuit="true">
+		<param name="expression">foo &gt; 2</param>
+		<message>Foo must be greater than Bar 2. Foo = ${foo}, Bar = ${bar}.</message>
+	</validator>
+
+	<validator type="expression" short-circuit="true">
+		<param name="expression">foo &gt; 3</param>
+		<message>Foo must be greater than Bar 3. Foo = ${foo}, Bar = ${bar}.</message>
+	</validator>
+
+	<validator type="expression" short-circuit="true">
+		<param name="expression">foo &gt; 4</param>
+		<message>Foo must be greater than Bar 4. Foo = ${foo}, Bar = ${bar}.</message>
+	</validator>
+
+	<validator type="expression" short-circuit="true">
+		<param name="expression">foo &gt; 5</param>
+		<message>Foo must be greater than Bar 5. Foo = ${foo}, Bar = ${bar}.</message>
+	</validator>
+
+
+	<validator type="required" short-circuit="true">
+		<param name="fieldName">customfield</param>
+		<message>You must enter a value for field.</message>
+	</validator>
+
+	<validator type="requiredstring" short-circuit="true">
+		<param name="fieldName">stringisrequired</param>
+		<message>You must enter a value for string.</message>
+	</validator>
+
+	<validator type="email" short-circuit="true">
+		<param name="fieldName">emailaddress</param>
+		<message>You must enter a value for email.</message>
+	</validator>
+
+	<validator type="url" short-circuit="true">
+		<param name="fieldName">hreflocation</param>
+		<message>You must enter a value for email.</message>
+	</validator>
+
+	<validator type="int" short-circuit="true">
+		<param name="fieldName">intfield</param>
+		<param name="min">6</param>
+		<param name="max">10</param>
+		<message>bar must be between ${min} and ${max}, current value is ${bar}.</message>
+	</validator>
+
+	<validator type="date" short-circuit="true">
+		<param name="fieldName">datefield</param>
+		<param name="min">-1</param>
+		<param name="max">99</param>
+		<message>bar must be between ${min} and ${max}, current value is ${bar}.</message>
+	</validator>
+
+</validators>

tiger/src/test/com/opensymphony/xwork/apt/expected/xwork-conversion.properties

+# Generated automatically. Do not edit!
+convertInt=com.opensymphony.xwork.util.XWorkBasicConverter
+java.util.Date=com.opensymphony.xwork.util.XWorkBasicConverter