File tree Expand file tree Collapse file tree 7 files changed +21
-21
lines changed
maven-failsafe-plugin/src/it
src/test/java/org/apache/maven/surefire/its/jiras Expand file tree Collapse file tree 7 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 4040 <scope >test</scope >
4141 </dependency >
4242 <dependency >
43- <groupId >net.sourceforge .htmlunit</groupId >
43+ <groupId >org .htmlunit</groupId >
4444 <artifactId >htmlunit</artifactId >
45- <version >2.3 </version >
45+ <version >3.8.0 </version >
4646 <scope >test</scope >
4747 </dependency >
4848 </dependencies >
Original file line number Diff line number Diff line change 2222import java .io .IOException ;
2323import java .util .Properties ;
2424
25- import com . gargoylesoftware .htmlunit .WebClient ;
26- import com . gargoylesoftware .htmlunit .html .HtmlPage ;
25+ import org .htmlunit .WebClient ;
26+ import org .htmlunit .html .HtmlPage ;
2727import junit .framework .TestCase ;
2828
2929public class BasicIT
@@ -48,16 +48,16 @@ public void tearDown()
4848 {
4949 if ( client != null )
5050 {
51- client .closeAllWindows ();
51+ client .close ();
5252 client = null ;
5353 }
5454 }
5555
5656 public void testSmokes ()
5757 throws Exception
5858 {
59- client .setThrowExceptionOnFailingStatusCode ( false );
59+ client .getOptions (). setThrowExceptionOnFailingStatusCode ( false );
6060 HtmlPage page = client .getPage ( baseUrl + "index.html" );
61- assertFalse ( page .asText ().contains ( "Hello World" ) );
61+ assertFalse ( page .asNormalizedText ().contains ( "Hello World" ) );
6262 }
6363}
Original file line number Diff line number Diff line change 4040 <scope >test</scope >
4141 </dependency >
4242 <dependency >
43- <groupId >net.sourceforge .htmlunit</groupId >
43+ <groupId >org .htmlunit</groupId >
4444 <artifactId >htmlunit</artifactId >
45- <version >2.3 </version >
45+ <version >3.8.0 </version >
4646 <scope >test</scope >
4747 </dependency >
4848 </dependencies >
Original file line number Diff line number Diff line change 2121import java .io .IOException ;
2222import java .util .Properties ;
2323
24- import com . gargoylesoftware .htmlunit .WebClient ;
25- import com . gargoylesoftware .htmlunit .html .HtmlPage ;
24+ import org .htmlunit .WebClient ;
25+ import org .htmlunit .html .HtmlPage ;
2626import junit .framework .TestCase ;
2727
2828public class BasicIT
@@ -47,16 +47,16 @@ public void tearDown()
4747 {
4848 if ( client != null )
4949 {
50- client .closeAllWindows ();
50+ client .close ();
5151 client = null ;
5252 }
5353 }
5454
5555 public void testSmokes ()
5656 throws Exception
5757 {
58- client .setThrowExceptionOnFailingStatusCode ( false );
58+ client .getOptions (). setThrowExceptionOnFailingStatusCode ( false );
5959 HtmlPage page = client .getPage ( baseUrl + "index.html" );
60- assertTrue ( page .asText ().contains ( "Hello World" ) );
60+ assertTrue ( page .asNormalizedText ().contains ( "Hello World" ) );
6161 }
6262}
Original file line number Diff line number Diff line change 212212 <version >2.9.1</version >
213213 </dependency >
214214 <dependency >
215- <groupId >net.sourceforge .htmlunit</groupId >
215+ <groupId >org .htmlunit</groupId >
216216 <artifactId >htmlunit</artifactId >
217- <version >2.70 .0</version >
217+ <version >3.8 .0</version >
218218 </dependency >
219219 <dependency >
220220 <!-- used in the unit tests and maven-shared-utils:3.3.4 -->
Original file line number Diff line number Diff line change 5353 <scope >test</scope >
5454 </dependency >
5555 <dependency >
56- <groupId >net.sourceforge .htmlunit</groupId >
56+ <groupId >org .htmlunit</groupId >
5757 <artifactId >htmlunit</artifactId >
5858 <scope >test</scope >
5959 </dependency >
Original file line number Diff line number Diff line change 2121import java .io .IOException ;
2222import java .net .URI ;
2323
24- import com .gargoylesoftware .htmlunit .WebClient ;
25- import com .gargoylesoftware .htmlunit .html .HtmlAnchor ;
26- import com .gargoylesoftware .htmlunit .html .HtmlPage ;
27- import com .gargoylesoftware .htmlunit .html .HtmlTableRow ;
2824import org .apache .maven .surefire .its .fixture .OutputValidator ;
2925import org .apache .maven .surefire .its .fixture .SurefireJUnit4IntegrationTestCase ;
3026import org .apache .maven .surefire .its .fixture .TestFile ;
27+ import org .htmlunit .WebClient ;
28+ import org .htmlunit .html .HtmlAnchor ;
29+ import org .htmlunit .html .HtmlPage ;
30+ import org .htmlunit .html .HtmlTableRow ;
3131import org .junit .Test ;
3232
3333import static org .junit .Assert .assertFalse ;
You can’t perform that action at this time.
0 commit comments