Skip to content

Commit

Permalink
Fix failing arquillian test after EL expressions were fixed in OWB SN…
Browse files Browse the repository at this point in the history
…APSHOT and test was re-enabled.
  • Loading branch information
rzo1 committed Jan 19, 2024
1 parent 035d386 commit 52710e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
11 changes: 5 additions & 6 deletions arquillian/arquillian-tomee-moviefun-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
<name>TomEE :: Arquillian Adaptors Parent :: Sample :: Moviefun</name>

<properties>
<version.selenium>2.40.0</version.selenium>
<version.drone>1.3.0.Final</version.drone>
<version.selenium>2.53.1</version.selenium>
<version.drone>1.3.1.Final</version.drone>
</properties>

<build>
Expand Down Expand Up @@ -81,12 +81,12 @@
<artifactItem>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-api</artifactId>
<version>4.0.1</version>
<version>${version.myfaces}</version>
</artifactItem>
<artifactItem>
<groupId>org.apache.tomee</groupId>
<artifactId>taglibs-shade</artifactId>
<version>10.0.0-M1-SNAPSHOT</version>
<version>${project.version}</version>
</artifactItem>
</artifactItems>
<outputDirectory>
Expand Down Expand Up @@ -121,7 +121,6 @@
<dependency>
<groupId>org.apache.tomee</groupId>
<artifactId>taglibs-shade</artifactId>
<version>10.0.0-M1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down Expand Up @@ -258,7 +257,7 @@
<dependency>
<groupId>net.sourceforge.htmlunit</groupId>
<artifactId>htmlunit</artifactId>
<version>2.12</version>
<version>2.70.0</version>
<type>jar</type>
<scope>test</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ private static File createWebApp() throws IOException {
@Test
public void testShouldMakeSureWebappIsWorking() throws Exception {
WebClient webClient = new WebClient();
webClient.getOptions().setThrowExceptionOnScriptError(false);
HtmlPage page = webClient.getPage("http://localhost:9999/moviefun/setup");

assertMoviesPresent(page);
Expand All @@ -90,11 +91,11 @@ public void testShouldMakeSureWebappIsWorking() throws Exception {
}

assertMoviesPresent(page);
webClient.closeAllWindows();
webClient.close();
}

private void assertMoviesPresent(HtmlPage page) {
String pageAsText = page.asText();
String pageAsText = page.asNormalizedText();
assertTrue(pageAsText.contains("Wedding Crashers"));
assertTrue(pageAsText.contains("Starsky & Hutch"));
assertTrue(pageAsText.contains("Shanghai Knights"));
Expand Down

0 comments on commit 52710e8

Please sign in to comment.