Class ScopeAwareTestSetup


  • @Immutable
    public final class ScopeAwareTestSetup
    extends Object
    This class provides the initialization handling for scopes in unit tests. It is independent of JUnit and can be used with any unit testing framework.
    Author:
    Philip Helger
    • Method Detail

      • setupScopeTests

        public static void setupScopeTests()
        Run this before tests are executed to initialize a global scope and a request.
      • shutdownScopeTests

        public static void shutdownScopeTests()
        Run this after your tests to shutdown the request and the global scope.