Class AutoEnvironment

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    public class AutoEnvironment
    extends org.junit.rules.ExternalResource
    A TestRule implementing ExternalResource creating and destroying a ZatsEnvironment.
    Used with ClassRule it provides a pluggable alternative to separate static methods annotated with BeforeClass and AfterClass

    Also see: dzone.com/articles/junit-49-class-and-suite-level-rules