Skip to content

Commit 37d3185

Browse files
committed
Enable Wicket example, using HtmlUnitDriver so it runs on Travis. Upgraded maven plugins.
1 parent 1f6ff9b commit 37d3185

File tree

5 files changed

+23
-20
lines changed

5 files changed

+23
-20
lines changed

examples/java-wicket/java-wicket-main/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<version>1.1.5-SNAPSHOT</version>
88
</parent>
99
<artifactId>java-wicket-main</artifactId>
10-
<name>Examples: A Wicket application that can be tested with Selenium WebDriver</name>
10+
<name>Examples: Wicket application</name>
1111
<packaging>war</packaging>
1212
<build>
1313
<finalName>rentit</finalName>

examples/java-wicket/java-wicket-test/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<version>1.1.5-SNAPSHOT</version>
88
</parent>
99
<artifactId>java-wicket-test</artifactId>
10-
<name>Examples: A Selenium WebDriver example testing a Wicket application</name>
10+
<name>Examples: Wicket application tested with Selenium</name>
1111
<build>
1212
<plugins>
1313
<plugin>

examples/java-wicket/java-wicket-test/src/test/java/cucumber/examples/java/wicket/steps/RentACarSupport.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
import org.openqa.selenium.By;
44
import org.openqa.selenium.WebDriver;
55
import org.openqa.selenium.WebElement;
6-
import org.openqa.selenium.firefox.FirefoxDriver;
6+
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
77

88
public class RentACarSupport {
99
public void createCars(int availableCars) {
10-
WebDriver driver = new FirefoxDriver();
10+
WebDriver driver = new HtmlUnitDriver();
1111
try {
1212
driver.get("http://localhost:9878/rentit/create");
1313

@@ -23,7 +23,7 @@ public void createCars(int availableCars) {
2323
}
2424

2525
public void rentACar() {
26-
WebDriver driver = new FirefoxDriver();
26+
WebDriver driver = new HtmlUnitDriver();
2727
try {
2828
driver.get("http://localhost:9878/rentit/rent");
2929

@@ -35,7 +35,7 @@ public void rentACar() {
3535
}
3636

3737
public int getAvailableNumberOfCars() {
38-
WebDriver driver = new FirefoxDriver();
38+
WebDriver driver = new HtmlUnitDriver();
3939
try {
4040
driver.get("http://localhost:9878/rentit/available");
4141

examples/java-wicket/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</parent>
1010
<artifactId>java-wicket-selenium</artifactId>
1111
<packaging>pom</packaging>
12-
<name>Examples: A Wicket application tested with Selenium WebDriver</name>
12+
<name>Examples: Wicket</name>
1313
<modules>
1414
<module>java-wicket-main</module>
1515
<module>java-wicket-test</module>

pom.xml

+16-13
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@
481481
<profile>
482482
<id>examples</id>
483483
<modules>
484+
<module>examples/java-wicket</module>
484485
<module>examples/spring-txn</module>
485486
<module>examples/java-calculator</module>
486487
<module>examples/groovy-calculator</module>
@@ -510,6 +511,7 @@
510511
<plugin>
511512
<groupId>org.apache.maven.plugins</groupId>
512513
<artifactId>maven-release-plugin</artifactId>
514+
<version>2.4.1</version>
513515
<configuration>
514516
<tagNameFormat>v@{project.version}</tagNameFormat>
515517
</configuration>
@@ -518,6 +520,7 @@
518520
<plugin>
519521
<groupId>org.apache.maven.plugins</groupId>
520522
<artifactId>maven-gpg-plugin</artifactId>
523+
<version>1.4</version>
521524
<configuration>
522525
<useAgent>true</useAgent>
523526
</configuration>
@@ -606,7 +609,7 @@
606609
<plugin>
607610
<groupId>org.apache.maven.plugins</groupId>
608611
<artifactId>maven-compiler-plugin</artifactId>
609-
<version>3.0</version>
612+
<version>3.1</version>
610613
<configuration>
611614
<encoding>UTF-8</encoding>
612615
<source>1.6</source>
@@ -624,7 +627,7 @@
624627
<plugin>
625628
<groupId>org.apache.maven.plugins</groupId>
626629
<artifactId>maven-javadoc-plugin</artifactId>
627-
<version>2.9</version>
630+
<version>2.9.1</version>
628631
<configuration>
629632
<aggregate>true</aggregate>
630633
<use>false</use>
@@ -657,19 +660,19 @@
657660
<plugin>
658661
<groupId>org.apache.maven.plugins</groupId>
659662
<artifactId>maven-project-info-reports-plugin</artifactId>
660-
<version>2.5</version>
663+
<version>2.7</version>
661664
</plugin>
662665

663666
<plugin>
664667
<groupId>org.apache.maven.plugins</groupId>
665668
<artifactId>maven-release-plugin</artifactId>
666-
<version>2.3.2</version>
669+
<version>2.4.1</version>
667670
</plugin>
668671

669672
<plugin>
670673
<groupId>org.apache.maven.plugins</groupId>
671674
<artifactId>maven-shade-plugin</artifactId>
672-
<version>1.7.1</version>
675+
<version>2.1</version>
673676
<executions>
674677
<execution>
675678
<phase>package</phase>
@@ -686,13 +689,13 @@
686689
<plugin>
687690
<groupId>org.apache.maven.plugins</groupId>
688691
<artifactId>maven-site-plugin</artifactId>
689-
<version>3.1</version>
692+
<version>3.3</version>
690693
</plugin>
691694

692695
<plugin>
693696
<groupId>org.apache.maven.plugins</groupId>
694697
<artifactId>maven-source-plugin</artifactId>
695-
<version>2.2</version>
698+
<version>2.2.1</version>
696699
<executions>
697700
<execution>
698701
<id>bind-sources</id>
@@ -706,7 +709,7 @@
706709
<plugin>
707710
<groupId>org.apache.maven.plugins</groupId>
708711
<artifactId>maven-surefire-plugin</artifactId>
709-
<version>2.12.2</version>
712+
<version>2.16</version>
710713
<configuration>
711714
<argLine>-Duser.language=en</argLine>
712715
<argLine>-Xmx1024m</argLine>
@@ -721,25 +724,25 @@
721724
<plugin>
722725
<groupId>net.alchim31.maven</groupId>
723726
<artifactId>scala-maven-plugin</artifactId>
724-
<version>3.1.0</version>
727+
<version>3.1.5</version>
725728
</plugin>
726729

727730
<plugin>
728731
<groupId>org.codehaus.gmaven</groupId>
729732
<artifactId>gmaven-plugin</artifactId>
730-
<version>1.4</version>
733+
<version>1.5</version>
731734
</plugin>
732735

733736
<plugin>
734737
<groupId>org.codehaus.mojo</groupId>
735738
<artifactId>build-helper-maven-plugin</artifactId>
736-
<version>1.7</version>
739+
<version>1.8</version>
737740
</plugin>
738741

739742
<plugin>
740743
<groupId>com.theoryinpractise</groupId>
741744
<artifactId>clojure-maven-plugin</artifactId>
742-
<version>1.3.11</version>
745+
<version>1.3.17</version>
743746
</plugin>
744747

745748
</plugins>
@@ -749,7 +752,7 @@
749752
<extension>
750753
<groupId>org.apache.maven.wagon</groupId>
751754
<artifactId>wagon-ssh</artifactId>
752-
<version>2.2</version>
755+
<version>2.4</version>
753756
</extension>
754757
</extensions>
755758
</build>

0 commit comments

Comments
 (0)