Class ServerSideTestClient


  • public class ServerSideTestClient
    extends org.apache.sling.testing.tools.sling.SlingClient
    Configurable SlingClient for server-side tests. We can't inherit from SlingTestBase as that class tries to start the JarExecutor which will fail in some situations (TODO: split that class into smaller utilities to avoid this problem)
    • Constructor Detail

      • ServerSideTestClient

        public ServerSideTestClient()
    • Method Detail

      • assertTestsPass

        public void assertTestsPass​(String testPackageOrClassName,
                                    int expectedTestsCount)
                             throws Exception
        Run server-side test(s)
        Parameters:
        testPackageOrClassName - selects which tests to run
        expectedTestsCount - Use a negative -N value to mean "at least N tests"
        Throws:
        Exception