Class RequestUriOptingServletTest

  • All Implemented Interfaces:
    junit.framework.Test

    public class RequestUriOptingServletTest
    extends org.apache.sling.commons.testing.integration.HttpTestBase
    Test the RequestUriOptingServlet resolution
    • Constructor Detail

      • RequestUriOptingServletTest

        public RequestUriOptingServletTest()
    • Method Detail

      • testPostMethodExistingResource

        public void testPostMethodExistingResource()
                                            throws Exception
        Throws:
        Exception
      • testPuttMethodNonExistingResource

        public void testPuttMethodNonExistingResource()
                                               throws Exception
        Throws:
        Exception
      • testGetMethodExistingResource

        public void testGetMethodExistingResource()
                                           throws Exception
        Throws:
        Exception
      • testGetMethodNonExistingResource

        public void testGetMethodNonExistingResource()
                                              throws Exception
        Throws:
        Exception
      • setUp

        protected void setUp()
                      throws Exception
        Overrides:
        setUp in class org.apache.sling.commons.testing.integration.HttpTestBase
        Throws:
        Exception
      • tearDown

        protected void tearDown()
                         throws Exception
        Overrides:
        tearDown in class org.apache.sling.commons.testing.integration.HttpTestBase
        Throws:
        Exception
      • assertServlet

        protected void assertServlet​(String content,
                                     String expectedSuffix)
                              throws IOException
        Asserts that the given content is in Properties format and contains a property named CLASS_PROP that ends with expected suffix
        Throws:
        IOException
      • assertNotTestServlet

        protected void assertNotTestServlet​(String content)
        Assert that content does not contain TEST_SERVLET_MARKER