This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-servlets-resolver.git
The following commit(s) were added to refs/heads/master by this push:
new 1603a0e SLING-11315 - tentative additional tests to figure out the
current behavior
1603a0e is described below
commit 1603a0ecb2ab8b4395560c0d53d9e5569b68a568
Author: Bertrand Delacretaz <[email protected]>
AuthorDate: Wed May 11 16:56:24 2022 +0200
SLING-11315 - tentative additional tests to figure out the current behavior
---
.../servlets/resolver/it/ServletSelectionIT.java | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git
a/src/test/java/org/apache/sling/servlets/resolver/it/ServletSelectionIT.java
b/src/test/java/org/apache/sling/servlets/resolver/it/ServletSelectionIT.java
index f644f75..fe8bad4 100644
---
a/src/test/java/org/apache/sling/servlets/resolver/it/ServletSelectionIT.java
+++
b/src/test/java/org/apache/sling/servlets/resolver/it/ServletSelectionIT.java
@@ -97,6 +97,20 @@ public class ServletSelectionIT extends
ServletResolverTestSupport {
.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
@@ -188,4 +202,9 @@ public class ServletSelectionIT extends
ServletResolverTestSupport {
assertTestServlet("/emptySel.ext", "EmptySelectors");
assertTestServlet("/emptySel.sel.ext",
HttpServletResponse.SC_FORBIDDEN);
}
+
+ @Test
+ public void testDuplicate() throws Exception {
+ assertTestServlet("/duplicate.dup.json", "DuplicateA");
+ }
}
\ No newline at end of file