Skip to content

Commit 344be71

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 2f4e791 commit 344be71

File tree

1 file changed

+1
-1
lines changed
  • cdi/nobeans-el-injection-flowscoped/src/test/java/org/javaee7/cdi/nobeans/el/injection/flowscoped

1 file changed

+1
-1
lines changed

cdi/nobeans-el-injection-flowscoped/src/test/java/org/javaee7/cdi/nobeans/el/injection/flowscoped/FlowScopedBeanTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static WebArchive deploy() {
3737
@Test
3838
public void checkRenderedPage() throws Exception {
3939
WebClient webClient = new WebClient();
40-
HtmlPage page = webClient.getPage(base + "/faces/myflow/index.xhtml");
40+
HtmlPage page = webClient.getPage((base + "/faces/myflow/index.xhtml").replace("//faces", "/faces"));
4141
assertNotNull(page);
4242
assert (page.asText().contains("Hello there!"));
4343
}

0 commit comments

Comments
 (0)