Package org.apache.sling.testing.tools.sling

Examples of org.apache.sling.testing.tools.sling.SlingInstance


    }

    @Test
    public void testSomeConsolePaths() throws Exception {
        numberOfTestsExecuted++;
        final SlingInstance instance = rule.getSlingInstance();
        log.info("Running testSomeConsolePaths {} on {}", getClass().getSimpleName(), instance.getServerBaseUrl());

        final String [] subpaths = {
                "bundles",
                "components",
                "configMgr",
                "config",
                "licenses",
                "logs",
                "memoryusage",
                "services"
        };

        for(String subpath : subpaths) {
            final String path = "/system/console/" + subpath;
            instance.getRequestExecutor().execute(
                    instance.getRequestBuilder().buildGetRequest(path)
                            .withCredentials(instance.getServerUsername(), instance.getServerPassword())
            ).assertStatus(200);
        }
    }
View Full Code Here


    }
   
    @Test
    public void checkRuleWithMoreThanOneTest() throws Exception {
        numberOfTestsExecuted++;
        final SlingInstance instance = rule.getSlingInstance();
        log.info("Running checkRuleWithMoreThanOneTest {} on {}", getClass().getSimpleName(), instance.getServerBaseUrl());

        final String path = "/system/console/bundles";
        instance.getRequestExecutor().execute(
                instance.getRequestBuilder().buildGetRequest(path)
                        .withCredentials(instance.getServerUsername(), instance.getServerPassword())
        ).assertStatus(200);
    }
View Full Code Here

TOP

Related Classes of org.apache.sling.testing.tools.sling.SlingInstance

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.