public class LithoAnimationEnablerTestRule
extends TestWatcher
Constructor and Description |
---|
LithoAnimationEnablerTestRule() |
Modifier and Type | Method and Description |
---|---|
void |
disable()
Disable Litho animations.
|
void |
enable()
Temporarily enable Litho animations until either
disable() is called or test method
finishes. |
protected void |
finished(Description description) |
public void enable()
disable()
is called or test method
finishes. If you want to enable animations at class level you can use this method in setup
method (annotated with @Before), or in individual test methods at the beginning of the method.
We will make sure to turn animation back to its original value when every test method finishes.public void disable()
protected void finished(Description description)