Revision: 658
          http://svn.sourceforge.net/jwebunit/?rev=658&view=rev
Author:   henryju
Date:     2007-01-21 06:09:57 -0800 (Sun, 21 Jan 2007)

Log Message:
-----------
Add getTester() public method on WebTestCase. Set tearDown protected. Thanks to 
Thomas Block.

Modified Paths:
--------------
    branches/1.x/jwebunit-webtestcase-generator/src/main/javacc/Java1.5.jj

Modified: branches/1.x/jwebunit-webtestcase-generator/src/main/javacc/Java1.5.jj
===================================================================
--- branches/1.x/jwebunit-webtestcase-generator/src/main/javacc/Java1.5.jj      
2007-01-11 16:24:01 UTC (rev 657)
+++ branches/1.x/jwebunit-webtestcase-generator/src/main/javacc/Java1.5.jj      
2007-01-21 14:09:57 UTC (rev 658)
@@ -679,12 +679,19 @@
   sb.append("        super();\n");
   sb.append("    }\n\n");
 
-  sb.append("    public void tearDown() throws Exception {\n");
+  sb.append("    protected void tearDown() throws Exception {\n");
   sb.append("        closeBrowser();\n");
   sb.append("        super.tearDown();\n");
   sb.append("    }\n\n");
 
   sb.append("    /**\n");
+  sb.append("     * Get internal WebTester.\n");
+  sb.append("     */\n");
+  sb.append("    public WebTester getTester() {\n");
+  sb.append("        return this.tester;\n");
+  sb.append("    }\n\n");
+
+  sb.append("    /**\n");
   sb.append("     * Clean up unused memory. Using <tt>setUp</tt> and 
<tt>tearDown</tt> is\n");
   sb.append("     * not an option for this requires the subclasses of this 
class to call the\n");
   sb.append("     * respective <tt>super</tt> methods.\n");


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to