Skip to content

Commit 8705ff6

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 71ccc33 commit 8705ff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsf/http-get/src/test/java/org/javaee7/jsf/http/get/UserTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static WebArchive createDeployment() {
4646
@Before
4747
public void setup() throws IOException {
4848
webClient = new WebClient();
49-
page = webClient.getPage(base + "/faces/index.xhtml");
49+
page = webClient.getPage((base + "/faces/index.xhtml").replace("//faces", "/faces"));
5050
}
5151

5252
@Test

0 commit comments

Comments
 (0)