public ServerSideTestClient() {
super(getServerBaseUrl(), getUsername(), getPassword());
}
public TestResults runTests(String testPackageOrClassName) throws Exception {
final RemoteTestHttpClient testClient = new RemoteTestHttpClient(serverBaseUrl + "/system/sling/junit",serverUsername,serverPassword,true);
final TestResults r = new TestResults();
final Map<String, String> options = new HashMap<String, String>();
options.put("forceReload", "true");
final RequestExecutor executor = testClient.runTests(testPackageOrClassName, null, "json", options);
executor.assertContentType("application/json");
String content = executor.getContent();
final JSONArray json = new JSONArray(new JSONTokener(content));
for(int i = 0 ; i < json.length(); i++) {