Package com.vaadin.tests
Class EnableFeatureFlagRule
java.lang.Object
org.junit.rules.ExternalResource
com.vaadin.tests.EnableFeatureFlagRule
- All Implemented Interfaces:
org.junit.rules.TestRule
public class EnableFeatureFlagRule
extends org.junit.rules.ExternalResource
JUnit rule to enable a specific feature flag for the duration of a test.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.junit.rules.ExternalResource
apply
-
Constructor Details
-
EnableFeatureFlagRule
public EnableFeatureFlagRule(com.vaadin.experimental.Feature feature)
-
-
Method Details
-
before
public void before()- Overrides:
beforein classorg.junit.rules.ExternalResource
-
after
public void after()- Overrides:
afterin classorg.junit.rules.ExternalResource
-
disableFeature
public void disableFeature()
-