File tree 7 files changed +21
-21
lines changed
maven-failsafe-plugin/src/it
src/test/java/org/apache/maven/surefire/its/jiras
7 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 40
40
<scope >test</scope >
41
41
</dependency >
42
42
<dependency >
43
- <groupId >net.sourceforge .htmlunit</groupId >
43
+ <groupId >org .htmlunit</groupId >
44
44
<artifactId >htmlunit</artifactId >
45
- <version >2.3 </version >
45
+ <version >3.8.0 </version >
46
46
<scope >test</scope >
47
47
</dependency >
48
48
</dependencies >
Original file line number Diff line number Diff line change 22
22
import java .io .IOException ;
23
23
import java .util .Properties ;
24
24
25
- import com . gargoylesoftware .htmlunit .WebClient ;
26
- import com . gargoylesoftware .htmlunit .html .HtmlPage ;
25
+ import org .htmlunit .WebClient ;
26
+ import org .htmlunit .html .HtmlPage ;
27
27
import junit .framework .TestCase ;
28
28
29
29
public class BasicIT
@@ -48,16 +48,16 @@ public void tearDown()
48
48
{
49
49
if ( client != null )
50
50
{
51
- client .closeAllWindows ();
51
+ client .close ();
52
52
client = null ;
53
53
}
54
54
}
55
55
56
56
public void testSmokes ()
57
57
throws Exception
58
58
{
59
- client .setThrowExceptionOnFailingStatusCode ( false );
59
+ client .getOptions (). setThrowExceptionOnFailingStatusCode ( false );
60
60
HtmlPage page = client .getPage ( baseUrl + "index.html" );
61
- assertFalse ( page .asText ().contains ( "Hello World" ) );
61
+ assertFalse ( page .asNormalizedText ().contains ( "Hello World" ) );
62
62
}
63
63
}
Original file line number Diff line number Diff line change 40
40
<scope >test</scope >
41
41
</dependency >
42
42
<dependency >
43
- <groupId >net.sourceforge .htmlunit</groupId >
43
+ <groupId >org .htmlunit</groupId >
44
44
<artifactId >htmlunit</artifactId >
45
- <version >2.3 </version >
45
+ <version >3.8.0 </version >
46
46
<scope >test</scope >
47
47
</dependency >
48
48
</dependencies >
Original file line number Diff line number Diff line change 21
21
import java .io .IOException ;
22
22
import java .util .Properties ;
23
23
24
- import com . gargoylesoftware .htmlunit .WebClient ;
25
- import com . gargoylesoftware .htmlunit .html .HtmlPage ;
24
+ import org .htmlunit .WebClient ;
25
+ import org .htmlunit .html .HtmlPage ;
26
26
import junit .framework .TestCase ;
27
27
28
28
public class BasicIT
@@ -47,16 +47,16 @@ public void tearDown()
47
47
{
48
48
if ( client != null )
49
49
{
50
- client .closeAllWindows ();
50
+ client .close ();
51
51
client = null ;
52
52
}
53
53
}
54
54
55
55
public void testSmokes ()
56
56
throws Exception
57
57
{
58
- client .setThrowExceptionOnFailingStatusCode ( false );
58
+ client .getOptions (). setThrowExceptionOnFailingStatusCode ( false );
59
59
HtmlPage page = client .getPage ( baseUrl + "index.html" );
60
- assertTrue ( page .asText ().contains ( "Hello World" ) );
60
+ assertTrue ( page .asNormalizedText ().contains ( "Hello World" ) );
61
61
}
62
62
}
Original file line number Diff line number Diff line change 212
212
<version >2.9.1</version >
213
213
</dependency >
214
214
<dependency >
215
- <groupId >net.sourceforge .htmlunit</groupId >
215
+ <groupId >org .htmlunit</groupId >
216
216
<artifactId >htmlunit</artifactId >
217
- <version >2.70 .0</version >
217
+ <version >3.8 .0</version >
218
218
</dependency >
219
219
<dependency >
220
220
<!-- used in the unit tests and maven-shared-utils:3.3.4 -->
Original file line number Diff line number Diff line change 53
53
<scope >test</scope >
54
54
</dependency >
55
55
<dependency >
56
- <groupId >net.sourceforge .htmlunit</groupId >
56
+ <groupId >org .htmlunit</groupId >
57
57
<artifactId >htmlunit</artifactId >
58
58
<scope >test</scope >
59
59
</dependency >
Original file line number Diff line number Diff line change 21
21
import java .io .IOException ;
22
22
import java .net .URI ;
23
23
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 ;
28
24
import org .apache .maven .surefire .its .fixture .OutputValidator ;
29
25
import org .apache .maven .surefire .its .fixture .SurefireJUnit4IntegrationTestCase ;
30
26
import 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 ;
31
31
import org .junit .Test ;
32
32
33
33
import static org .junit .Assert .assertFalse ;
You can’t perform that action at this time.
0 commit comments