Skip to content

Commit 71ccc33

Browse files
committed
Remove double slashes before faces
In some situations, the base will end without an ending slash, but in other cases it will end with a slash, so the replace should take care of issues with double slashes.
1 parent 344be71 commit 71ccc33

File tree

1 file changed

+1
-1
lines changed
  • jsf/bean-validation/src/test/java/org/javaee7/jsf/bean/validation

1 file changed

+1
-1
lines changed

jsf/bean-validation/src/test/java/org/javaee7/jsf/bean/validation/MyBeanTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static WebArchive createDeployment() {
5454
@Before
5555
public void setup() throws IOException {
5656
webClient = new WebClient();
57-
page = webClient.getPage(base + "/faces/index.xhtml");
57+
page = webClient.getPage((base + "/faces/index.xhtml").replace("//faces", "/faces"));
5858
nameInputText = (HtmlTextInput) page.getElementById("nameInputText");
5959
ageInputText = (HtmlTextInput) page.getElementById("ageInputText");
6060
zipInputText = (HtmlTextInput) page.getElementById("zipInputText");

0 commit comments

Comments
 (0)