Class SlingRemoteExecutionRule
java.lang.Object
org.apache.sling.junit.remote.ide.SlingRemoteExecutionRule
- All Implemented Interfaces:
org.apache.sling.testing.tools.http.RequestCustomizer
,org.junit.rules.MethodRule
public class SlingRemoteExecutionRule
extends Object
implements org.junit.rules.MethodRule, org.apache.sling.testing.tools.http.RequestCustomizer
JUnit MethodRule that executes tests remotely if the
SLING_REMOTE_TEST_URL
property is set.
Used to execute tests from an IDE and have then run
on a remote Sling instance.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statement
apply
(org.junit.runners.model.Statement base, org.junit.runners.model.FrameworkMethod method, Object target) void
customizeRequest
(org.apache.sling.testing.tools.http.Request r)
-
Field Details
-
SLING_REMOTE_TEST_URL
Name of the system property that activates remote test execution- See Also:
-
SLING_REMOTE_TEST_USERNAME
- See Also:
-
SLING_REMOTE_TEST_PASSWORD
- See Also:
-
-
Constructor Details
-
SlingRemoteExecutionRule
public SlingRemoteExecutionRule()
-
-
Method Details
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runners.model.FrameworkMethod method, Object target) - Specified by:
apply
in interfaceorg.junit.rules.MethodRule
-
customizeRequest
public void customizeRequest(org.apache.sling.testing.tools.http.Request r) - Specified by:
customizeRequest
in interfaceorg.apache.sling.testing.tools.http.RequestCustomizer
-