Class TogglesAwareTestRule
- java.lang.Object
-
- com.adobe.cq.testing.junit.rules.toggles.TogglesAwareTestRule
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public class TogglesAwareTestRule extends Object implements org.junit.rules.TestRule
Junit rule for filtering tests based on the toggles enabled on the remote instance.
The rule is used in combination with the annotationsRunIfToggleEnabled
andSkipIfToggleEnabled
. If both annotations are applied to a test, both conditions must be met (AND operation).- See Also:
RunIfToggleEnabled
,SkipIfToggleEnabled
-
-
Constructor Summary
Constructors Constructor Description TogglesAwareTestRule(Supplier<org.apache.sling.testing.clients.SlingClient> clientSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statement
apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
protected boolean
shouldRunTest(org.junit.runner.Description description)
-
-
-
Constructor Detail
-
TogglesAwareTestRule
public TogglesAwareTestRule(Supplier<org.apache.sling.testing.clients.SlingClient> clientSupplier)
-
-