tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pferr...@apache.org
Subject cvs commit: jakarta-tapestry/framework/src/test/org/apache/tapestry/form FormComponentContributorTestCase.java
Date Tue, 14 Jun 2005 00:42:43 GMT
pferraro    2005/06/13 17:42:43

  Modified:    framework/src/test/org/apache/tapestry/form
                        FormComponentContributorTestCase.java
  Log:
  Fixed addScript() to properly test for correct script.
  
  Revision  Changes    Path
  1.3       +7 -0      jakarta-tapestry/framework/src/test/org/apache/tapestry/form/FormComponentContributorTestCase.java
  
  Index: FormComponentContributorTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/framework/src/test/org/apache/tapestry/form/FormComponentContributorTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FormComponentContributorTestCase.java	9 Jun 2005 18:33:45 -0000	1.2
  +++ FormComponentContributorTestCase.java	14 Jun 2005 00:42:43 -0000	1.3
  @@ -14,6 +14,7 @@
   
   package org.apache.tapestry.form;
   
  +import org.apache.hivemind.util.ClasspathResource;
   import org.apache.tapestry.IEngine;
   import org.apache.tapestry.IForm;
   import org.apache.tapestry.IPage;
  @@ -58,6 +59,7 @@
           _cycleControl.reset();
           _formControl.reset();
           _engineControl.reset();
  +        _pageRenderSupportControl.reset();
           
           super.tearDown();
       }
  @@ -69,6 +71,7 @@
           _cycleControl.replay();
           _formControl.replay();
           _engineControl.replay();
  +        _pageRenderSupportControl.replay();
       }
       
       protected void verify()
  @@ -78,6 +81,7 @@
           _cycleControl.verify();
           _formControl.verify();
           _engineControl.verify();
  +        _pageRenderSupportControl.verify();
       }
       
       protected void addScript(String script)
  @@ -90,5 +94,8 @@
           
           _cycle.getAttribute("org.apache.tapestry.PageRenderSupport");
           _cycleControl.setReturnValue(_pageRenderSupport);
  +        
  +        _pageRenderSupport.addExternalScript(new ClasspathResource(null, script));
  +        _pageRenderSupportControl.setVoidCallable();
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


Mime
View raw message