Revision: 904
          http://jwebunit.svn.sourceforge.net/jwebunit/?rev=904&view=rev
Author:   henryju
Date:     2011-08-16 09:40:44 +0000 (Tue, 16 Aug 2011)

Log Message:
-----------
Update documentation to use JUnit 4 syntax.

Modified Paths:
--------------
    trunk/src/site/xdoc/index.xml

Modified: trunk/src/site/xdoc/index.xml
===================================================================
--- trunk/src/site/xdoc/index.xml       2011-08-16 09:40:07 UTC (rev 903)
+++ trunk/src/site/xdoc/index.xml       2011-08-16 09:40:44 UTC (rev 904)
@@ -64,16 +64,22 @@
        <p>
                To use JWebUnit you only need to <a 
href="http://sourceforge.net/projects/jwebunit/files";>download the latest 
release JARs</a> 
                and include them into your project classpath. You may then test 
your web application 
-               by extending WebTestCase, and running these test cases with 
JUnit:
+               by importing JWebUnit static helpers, and running these test 
cases with JUnit:
                
                <source>
-public class ExampleWebTestCase extends WebTestCase {
-       public void setUp() {
-               super.setUp();
+import org.junit.*;
+
+import static net.sourceforge.jwebunit.junit.JWebUnit.*;
+
+public class ExampleWebTestCase {
+
+       @Before
+    public void prepare() {
                setBaseUrl("http://localhost:8080/test";);
        }
 
-       public void test1() {
+    @Test
+       public void testLogin() {
                beginAt("/home");
                clickLink("login");
                assertTitleEquals("Login");


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

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
JWebUnit-development mailing list
JWebUnit-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to