Skip to content

Commit

Permalink
SLING-11315 - tentative additional tests to figure out the current be…
Browse files Browse the repository at this point in the history
…havior
  • Loading branch information
bdelacretaz committed May 11, 2022
1 parent a222f41 commit 1603a0e
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,20 @@ public void setupTestServlets() throws Exception {
.with(P_SELECTORS, new String[] { ".EMPTY." })
.with(P_EXTENSIONS, new String[] { ".EMPTY." })
.register(bundleContext);

new TestServlet("DuplicateA")
.with(P_PATHS, "/duplicate")
.with(P_STRICT_PATHS, "true")
.with(P_SELECTORS, new String[] { "dup", "licate" })
.with(P_EXTENSIONS, new String[] { "json" })
.register(bundleContext);

new TestServlet("DuplicateB")
.with(P_PATHS, "/duplicate")
.with(P_STRICT_PATHS, "true")
.with(P_SELECTORS, new String[] { "dup", "licate" })
.with(P_EXTENSIONS, new String[] { "json" })
.register(bundleContext);
}

@Test
Expand Down Expand Up @@ -188,4 +202,9 @@ public void testEmptyExtensionsAndSelectors() throws Exception {
assertTestServlet("/emptySel.ext", "EmptySelectors");
assertTestServlet("/emptySel.sel.ext", HttpServletResponse.SC_FORBIDDEN);
}

@Test
public void testDuplicate() throws Exception {
assertTestServlet("/duplicate.dup.json", "DuplicateA");
}
}

0 comments on commit 1603a0e

Please sign in to comment.