You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2003/02/20 00:24:38 UTC

cvs commit: jakarta-tapestry/doc/src/ContributorsGuide ContributorsGuide.xml

hlship      2003/02/19 15:24:38

  Modified:    doc/src/ContributorsGuide ContributorsGuide.xml
  Log:
  Describe <assert-output-stream> element in Mock test scripts.
  
  Revision  Changes    Path
  1.15      +17 -2     jakarta-tapestry/doc/src/ContributorsGuide/ContributorsGuide.xml
  
  Index: ContributorsGuide.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/doc/src/ContributorsGuide/ContributorsGuide.xml,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- ContributorsGuide.xml	24 Jan 2003 00:49:39 -0000	1.14
  +++ ContributorsGuide.xml	19 Feb 2003 23:24:38 -0000	1.15
  @@ -1063,7 +1063,22 @@
   <sgmltag class="stattag">match</sgmltag> elements) is checked.
   </para>
   
  +<programlisting>
  +<![CDATA[
  +  <assert-output-stream name="Asset Content"
  +    content-type="image/gif"
  +    path="foo/bar/baz.gif"/>
  +]]>
  +</programlisting>
   
  +<para>
  +The <sgmltag class="starttag">assert-output-stream</sgmltag>
  +element is used to compare the entire response to a static file
  +(this is normally associated with private assets).  A content type
  +must be specified, as well as a relative path to a file to compare
  +against.  The path is relative to the junit directory.  The
  +response must match the specified content type and actual content.
  +</para>
   
   <note>
   <title>Force a failure, then check for correctness</title>