use of org.apache.sling.testing.clients.SlingClient in project sling by apache.
the class MimeTypeServletHttpIT method assertMimeType.
private void assertMimeType(String path, String expected) throws Exception {
SlingClient client = slingInstanceRule.getAdminClient();
SlingHttpResponse response = client.doGet(path + ".mimetype.txt", 200);
response.checkContentContains(expected);
}
use of org.apache.sling.testing.clients.SlingClient in project sling by apache.
the class AbstractSlingClientGetServerUrlTest method testGetUrl.
@Test
public void testGetUrl() throws ClientException {
SlingClient c = new SlingClient(URI.create(serverUrl), "USER", "PWD");
assertEquals("", URI.create(expectedUrl), c.getUrl());
}
use of org.apache.sling.testing.clients.SlingClient in project sling by apache.
the class AbstractSlingClientGetPathTest method testGetPath.
@Test
public void testGetPath() throws ClientException, URISyntaxException {
SlingClient c = new SlingClient(URI.create(serverUrl), "USER", "PWD");
assertEquals(URI.create(expectedPath), c.getPath(inputUri));
}
use of org.apache.sling.testing.clients.SlingClient in project sling by apache.
the class AbstractSlingClientGetUrlTest method testGetUrlWithParam.
@Test
public void testGetUrlWithParam() throws ClientException {
SlingClient c = new SlingClient(URI.create(serverUrl), "USER", "PWD");
assertEquals("", URI.create(expectedUrl), c.getUrl(inputPath));
}
use of org.apache.sling.testing.clients.SlingClient in project sling by apache.
the class LaunchpadReadyIT method testLaunchpadReady.
@Test
public void testLaunchpadReady() throws Exception {
SlingClient client = SLING_INSTANCE_RULE.getAdminClient();
client.waitUntilExists("/apps/sightly", 1000, 20);
client.waitUntilExists("/sightlytck", 1000, 20);
}
Aggregations