Update of /cvsroot/jwebunit/jWebUnit/sample/net/sourceforge/jwebunit/sample
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17113/sample/net/sourceforge/jwebunit/sample

Modified Files:
        JWebUnitSearchExample.java 
Log Message:
changes to go to jwebunit site instead.  we can control the content for this.

Index: JWebUnitSearchExample.java
===================================================================
RCS file: 
/cvsroot/jwebunit/jWebUnit/sample/net/sourceforge/jwebunit/sample/JWebUnitSearchExample.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** JWebUnitSearchExample.java  30 Sep 2004 16:10:28 -0000      1.2
--- JWebUnitSearchExample.java  5 Mar 2005 05:43:13 -0000       1.3
***************
*** 1,4 ****
--- 1,5 ----
  package net.sourceforge.jwebunit.sample;
  
+ import net.sourceforge.jwebunit.TestingEngineRegistry;
  import net.sourceforge.jwebunit.WebTestCase;
  
***************
*** 14,28 ****
      }
  
!     public void setUp() {
          getTestContext().setBaseUrl("http://www.google.com";);
      }
! 
!     public void testSearch() {
          beginAt("/");
!         setFormElement("q", "httpunit");
          submit("btnG");
!         clickLinkWithText("HttpUnit Home");
!         assertTitleEquals("HttpUnit Home");
!         assertLinkPresentWithText("User's Manual");
      }
  }
\ No newline at end of file
--- 15,35 ----
      }
  
!     public void setUp() throws Exception {
!       super.setUp();
          getTestContext().setBaseUrl("http://www.google.com";);
+         
+         //New implementation on choosing a testing engine (dialog).
+         setTestingEngineKey(TestingEngineRegistry.TESTING_ENGINE_JACOBIE);
      }
!     
!     public void testSearch() throws Exception {
          beginAt("/");
!         setFormElement("q", "jwebunit");
          submit("btnG");
!         clickLinkWithText("jWebUnit - jWebUnit");
!         assertTitleEquals("jWebUnit - jWebUnit");
! 
!         clickLinkWithText("Quick start");
!         assertTitleEquals("jWebUnit - Quick Start");
      }
  }
\ No newline at end of file



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to