When running the test {{ InterceptorEnvironmentJNDITest BuiltinMetadataEEBeanTest . testInterceptorEnvironment() interceptedBeanForEEComponentIsNullInInterceptor }}, I am seeing a HTTP 404 Not Found error which looks to be due to an extra slash being added to the URL:
{{String servletResponse = webClient.getPage(servletContextPath + "/test").getWebResponse().getContentAsString();}}
servletContextPath (which is injected via {{@ArquillianResource}}) already has a trailing slash so we shouldn't add another to the path.
I looked for other tests that follows the same pattern and see that they do not include the slash (e.g InterceptorEnvironmentJNDITest.java, ActivateRequestContextinEETest.java).
Also, if I understand correctly, it is up to the server if it wants to collapse '//' into a single '/' or if it wants to treat it as a different resource. |
|