Skip to content

Commit

Permalink
[SUREFIRE-2214] Uprade to HtmlUnit 3.8.0
Browse files Browse the repository at this point in the history
This closes #688
  • Loading branch information
rbri authored and michael-o committed Nov 23, 2023
1 parent 47c5816 commit f5b73ab
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions maven-failsafe-plugin/src/it/jetty-war-test-failing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.sourceforge.htmlunit</groupId>
<groupId>org.htmlunit</groupId>
<artifactId>htmlunit</artifactId>
<version>2.3</version>
<version>3.8.0</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
import java.io.IOException;
import java.util.Properties;

import com.gargoylesoftware.htmlunit.WebClient;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import org.htmlunit.WebClient;
import org.htmlunit.html.HtmlPage;
import junit.framework.TestCase;

public class BasicIT
Expand All @@ -48,16 +48,16 @@ public void tearDown()
{
if ( client != null )
{
client.closeAllWindows();
client.close();
client = null;
}
}

public void testSmokes()
throws Exception
{
client.setThrowExceptionOnFailingStatusCode( false );
client.getOptions().setThrowExceptionOnFailingStatusCode( false );
HtmlPage page = client.getPage( baseUrl + "index.html" );
assertFalse( page.asText().contains( "Hello World" ) );
assertFalse( page.asNormalizedText().contains( "Hello World" ) );
}
}
4 changes: 2 additions & 2 deletions maven-failsafe-plugin/src/it/jetty-war-test-passing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.sourceforge.htmlunit</groupId>
<groupId>org.htmlunit</groupId>
<artifactId>htmlunit</artifactId>
<version>2.3</version>
<version>3.8.0</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import java.io.IOException;
import java.util.Properties;

import com.gargoylesoftware.htmlunit.WebClient;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import org.htmlunit.WebClient;
import org.htmlunit.html.HtmlPage;
import junit.framework.TestCase;

public class BasicIT
Expand All @@ -47,16 +47,16 @@ public void tearDown()
{
if ( client != null )
{
client.closeAllWindows();
client.close();
client = null;
}
}

public void testSmokes()
throws Exception
{
client.setThrowExceptionOnFailingStatusCode( false );
client.getOptions().setThrowExceptionOnFailingStatusCode( false );
HtmlPage page = client.getPage( baseUrl + "index.html" );
assertTrue( page.asText().contains( "Hello World" ) );
assertTrue( page.asNormalizedText().contains( "Hello World" ) );
}
}
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@
<version>2.9.1</version>
</dependency>
<dependency>
<groupId>net.sourceforge.htmlunit</groupId>
<groupId>org.htmlunit</groupId>
<artifactId>htmlunit</artifactId>
<version>2.70.0</version>
<version>3.8.0</version>
</dependency>
<dependency>
<!-- used in the unit tests and maven-shared-utils:3.3.4 -->
Expand Down
2 changes: 1 addition & 1 deletion surefire-its/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.sourceforge.htmlunit</groupId>
<groupId>org.htmlunit</groupId>
<artifactId>htmlunit</artifactId>
<scope>test</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
import java.io.IOException;
import java.net.URI;

import com.gargoylesoftware.htmlunit.WebClient;
import com.gargoylesoftware.htmlunit.html.HtmlAnchor;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import com.gargoylesoftware.htmlunit.html.HtmlTableRow;
import org.apache.maven.surefire.its.fixture.OutputValidator;
import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
import org.apache.maven.surefire.its.fixture.TestFile;
import org.htmlunit.WebClient;
import org.htmlunit.html.HtmlAnchor;
import org.htmlunit.html.HtmlPage;
import org.htmlunit.html.HtmlTableRow;
import org.junit.Test;

import static org.junit.Assert.assertFalse;
Expand Down

0 comments on commit f5b73ab

Please sign in to comment.