tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject cvs commit: jakarta-tapestry/junit/context23 README Two.html Home.html
Date Sun, 23 Mar 2003 23:20:34 GMT
hlship      2003/03/23 15:20:34

  Added:       junit/mock-scripts TestAutoParameters.xml
               junit/context23/WEB-INF Home.page Flicker.jwc Bad.jwc
                        Flicker.html
               junit/context23 README Two.html Home.html
  Log:
  Add support for parameter direction 'auto'.
  
  Revision  Changes    Path
  1.1                  jakarta-tapestry/junit/mock-scripts/TestAutoParameters.xml
  
  Index: TestAutoParameters.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  
  <!-- $Id: TestAutoParameters.xml,v 1.1 2003/03/23 23:20:34 hlship Exp $ -->
  
  <mock-test>
      <context name="c23" root="context23"/>
  
    	<servlet name="assets" class="org.apache.tapestry.ApplicationServlet"/>
  
  	<request>
  		<assert-output name="Page Title">
  <![CDATA[
  <title>Home</title>
  ]]>
  		</assert-output>
  		
  		<assert-output name="boolValue">
  		boolValue: [true]	
  		</assert-output>
  		
  		<assert-output name="intValue">
  		intValue: [-3]	
  		</assert-output>
  		
  		<assert-output name="doubleValue">
  		doubleValue: [10.5]	
  		</assert-output>
  		
  		<assert-output name="stringValue">
  		stringValue: [Pink Floyd]
  		</assert-output>
  		
  		<assert-output name="objectValue">
  		objectValue: [en]	
  		</assert-output>
  		
  		<assert-output name="link">
  		href="/c23/assets?service=direct/0/Home/flicker.update"
  		</assert-output>
  	</request>
  	
  	<request>
  		<parameter name="service" value="direct/0/Home/flicker.update"/>
  		
  		<assert-output name="boolValue">
  		boolValue: [false]	
  		</assert-output>
  		
  		<assert-output name="intValue">
  		intValue: [100]	
  		</assert-output>
  		
  		<assert-output name="doubleValue">
  		doubleValue: [22.7]	
  		</assert-output>
  		
  		<assert-output name="stringValue">
  		stringValue: [Poi Dog Pondering]
  		</assert-output>
  		
  		<assert-output name="objectValue">
  		objectValue: [fr]	
  		</assert-output>
  		
  				 	
  	</request>
  	
  	<!-- Verify that the updates were propagated through to the persistent properties. -->
  	
  	<request>
  				
  		<assert-output name="boolValue">
  		boolValue: [false]	
  		</assert-output>
  		
  		<assert-output name="intValue">
  		intValue: [100]	
  		</assert-output>
  		
  		<assert-output name="doubleValue">
  		doubleValue: [22.7]	
  		</assert-output>
  		
  		<assert-output name="stringValue">
  		stringValue: [Poi Dog Pondering]
  		</assert-output>
  		
  		<assert-output name="objectValue">
  		objectValue: [fr]	
  		</assert-output>
  					 	
  	</request>	
  	
  	<request>
  		<parameter name="service" value="page/Two"/>	
  		
  		<assert-output name="Title">
  <![CDATA[
  <title>Exception</title>
  ]]>	
  		</assert-output>
  		
  		<assert-output name="Message">
  		Parameter 'flag' must be required as it uses direction 'auto'.	
  		</assert-output>
  	</request>
  	
  </mock-test>
  
  
  1.1                  jakarta-tapestry/junit/context23/WEB-INF/Home.page
  
  Index: Home.page
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!-- $Id: Home.page,v 1.1 2003/03/23 23:20:34 hlship Exp $ -->
  <!DOCTYPE page-specification PUBLIC 
    "-//Apache Software Foundation//Tapestry Specification 1.4//EN" 
    "http://jakarta.apache.org/tapestry/dtd/Tapestry_1_4.dtd">
  
  <page-specification>
  	
  	<property-specification name="booleanProperty" type="boolean" persistent="yes" initial-value="true"/>
  	<property-specification name="intProperty" type="int" persistent="yes" initial-value="-3"/>
  	<property-specification name="doubleProperty" type="double" persistent="yes" initial-value="10.5"/>
  	<property-specification name="stringProperty" type="java.lang.String"
  			persistent="yes">
  		"Pink Floyd"	
  	</property-specification>
  	<property-specification name="objectProperty" type="java.util.Locale" persistent="yes">
  		@java.util.Locale@ENGLISH	
  	</property-specification>
  	
  	
  	<component id="flicker" type="Flicker">
  	  <binding name="boolValue" expression="booleanProperty"/>
  	  <binding name="intValue" expression="intProperty"/>
  	  <binding name="doubleValue" expression="doubleProperty"/>
  	  <binding name="stringValue" expression="stringProperty"/>
  	  <binding name="objectValue" expression="objectProperty"/>	
  	</component>
  	
  </page-specification>
  
  
  
  1.1                  jakarta-tapestry/junit/context23/WEB-INF/Flicker.jwc
  
  Index: Flicker.jwc
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!-- $Id: Flicker.jwc,v 1.1 2003/03/23 23:20:34 hlship Exp $ -->
  <!DOCTYPE component-specification PUBLIC 
    "-//Apache Software Foundation//Tapestry Specification 1.4//EN" 
    "http://jakarta.apache.org/tapestry/dtd/Tapestry_1_4.dtd">
  
  <component-specification>
  	
  	<parameter name="boolValue" required="yes" type="boolean" direction="auto"/>
  	<parameter name="intValue" required="yes" type="int" direction="auto"/>
  	<parameter name="doubleValue" required="yes" type="double" direction="auto"/>
  	<parameter name="stringValue" required="yes" type="java.lang.String" direction="auto"/>
  	<parameter name="objectValue" required="yes" type="java.util.Locale" direction="auto"/>
  	
  	<!-- Been having trouble with the Jython syntax. -->
  	
  	<property-specification name="updateObjectValue"
  		type="java.util.Locale">
  		@java.util.Locale@FRENCH	
  	</property-specification>
  	
  	<component id="update" type="DirectLink">
  	<listener-binding name="listener">
  
  component.boolValue = 0
  component.intValue = 100
  component.doubleValue = 22.7
  component.stringValue = "Poi Dog Pondering"
  component.objectValue = component.updateObjectValue
  
  	</listener-binding>	
  	</component>
  </component-specification>
  
  
  
  1.1                  jakarta-tapestry/junit/context23/WEB-INF/Bad.jwc
  
  Index: Bad.jwc
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!-- $Id: Bad.jwc,v 1.1 2003/03/23 23:20:34 hlship Exp $ -->
  <!DOCTYPE component-specification PUBLIC 
    "-//Apache Software Foundation//Tapestry Specification 1.4//EN" 
    "http://jakarta.apache.org/tapestry/dtd/Tapestry_1_4.dtd">
  
  <component-specification>
  	
  	<parameter name="flag" type="boolean" direction="auto"/>
  
  </component-specification>
  
  
  
  1.1                  jakarta-tapestry/junit/context23/WEB-INF/Flicker.html
  
  Index: Flicker.html
  ===================================================================
  
  boolValue: [<span jwcid="@Insert" value="ognl:boolValue"/>]
  
  <br/>
  
  intValue: [<span jwcid="@Insert" value="ognl:intValue"/>]
  
  <br/>
  
  doubleValue: [<span jwcid="@Insert" value="ognl:doubleValue"/>]
  
  <br/>
  
  stringValue: [<span jwcid="@Insert" value="ognl:stringValue"/>]
  
  <br/>
  
  objectValue: [<span jwcid="@Insert" value="ognl:objectValue"/>]
  
  <br/>
  
  <a href="#" jwcid="update">update values</a>
  
  
  1.1                  jakarta-tapestry/junit/context23/README
  
  Index: README
  ===================================================================
  Tests for direction 'auto' parameters.
  
  See TestAutoParameters.xml
  
  
  
  1.1                  jakarta-tapestry/junit/context23/Two.html
  
  Index: Two.html
  ===================================================================
  <html jwcid="@Shell" title="Two">
  <body>
  
  <span jwcid="@Bad"/>
  	
  </body>
  </html>
  
  
  1.1                  jakarta-tapestry/junit/context23/Home.html
  
  Index: Home.html
  ===================================================================
  <html jwcid="@Shell" title="Home">
  <body>
  	
  <span jwcid="flicker"/>
  	
  </body>
  </html>
  
  

Mime
View raw message