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

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


    public static void setUpBefore() {
        SlingInstanceManager slingInstances = new SlingInstanceManager("author", "publish");
        author = slingInstances.getInstance("author");
        publish = slingInstances.getInstance("publish");

        authorClient = new SlingClient(author.getServerBaseUrl(), author.getServerUsername(), author.getServerPassword());
        publishClient = new SlingClient(publish.getServerBaseUrl(), publish.getServerUsername(), publish.getServerPassword());

        try {
            assertExists(authorClient, agentConfigUrl("publish"));
            assertExists(authorClient, agentConfigUrl("publish-reverse"));
View Full Code Here


   
    /** Before running tests, setup a node that gives access to the Sling JUnit servlet,
     *  and check (with timeout) that the servlet is ready */
    public SlingServerSideTestsBase() {
        if(!servletNodeCreated) {
            final SlingClient slingClient = new SlingClient(getServerBaseUrl(), getServerUsername(), getServerPassword());
            try {
                slingClient.createNode(SERVLET_NODE_PATH, "sling:resourceType", "sling/junit/testing");
                servletNodeCreated = true;
            } catch(Exception e) {
                fail("Exception while setting up Sling JUnit servlet: " + e);
            }
        }
View Full Code Here

        this.failureCount = failureCount.intValue();
    }
   
    @Before
    public void setupContent() throws Exception {
        slingClient = new SlingClient(getServerBaseUrl(), getServerUsername(), getServerPassword());
        testClient = new RemoteTestHttpClient(getServerBaseUrl() + JUNIT_SERVLET_PATH, getServerUsername(), getServerPassword(), true);
       
        cleanupContent();

        // A test node has the sling:Test mixin and points
View Full Code Here

TOP

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

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.