Class RemoteTestHttpClient
java.lang.Object
org.apache.sling.junit.remote.httpclient.RemoteTestHttpClient
HTTP client that executes tests remotely
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteTestHttpClient
(String junitServletUrl, boolean consumeContent) RemoteTestHttpClient
(String junitServletUrl, String username, String password, boolean consumeContent) -
Method Summary
Modifier and TypeMethodDescriptionIf called after runTests, returns the path used to run tests on the remote JUnit servletorg.apache.sling.testing.tools.http.RequestExecutor
org.apache.sling.testing.tools.http.RequestExecutor
runTests
(String testClassesSelector, String testMethodSelector, String extension, Map<String, String> requestOptions) void
setRequestCustomizer
(org.apache.sling.testing.tools.http.RequestCustomizer c)
-
Constructor Details
-
RemoteTestHttpClient
-
RemoteTestHttpClient
-
-
Method Details
-
setRequestCustomizer
public void setRequestCustomizer(org.apache.sling.testing.tools.http.RequestCustomizer c) -
runTests
public org.apache.sling.testing.tools.http.RequestExecutor runTests(String testClassesSelector, String testMethodSelector, String extension) throws org.apache.http.client.ClientProtocolException, IOException - Throws:
org.apache.http.client.ClientProtocolException
IOException
-
runTests
public org.apache.sling.testing.tools.http.RequestExecutor runTests(String testClassesSelector, String testMethodSelector, String extension, Map<String, String> requestOptions) throws org.apache.http.client.ClientProtocolException, IOException- Throws:
org.apache.http.client.ClientProtocolException
IOException
-
getTestExecutionPath
If called after runTests, returns the path used to run tests on the remote JUnit servlet
-