Package com.helger.scope.mock
Class ScopeAwareTestSetup
- java.lang.Object
-
- com.helger.scope.mock.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
-
-
Field Summary
Fields Modifier and Type Field Description static StringMOCK_GLOBAL_SCOPE_IDstatic StringMOCK_REQUEST_SCOPE_IDstatic StringMOCK_SESSION_SCOPE_IDstatic FileSTORAGE_PATH
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidsetupScopeTests()Run this before tests are executed to initialize a global scope and a request.static voidshutdownScopeTests()Run this after your tests to shutdown the request and the global scope.
-
-
-
Field Detail
-
MOCK_GLOBAL_SCOPE_ID
public static final String MOCK_GLOBAL_SCOPE_ID
- See Also:
- Constant Field Values
-
MOCK_REQUEST_SCOPE_ID
public static final String MOCK_REQUEST_SCOPE_ID
- See Also:
- Constant Field Values
-
MOCK_SESSION_SCOPE_ID
public static final String MOCK_SESSION_SCOPE_ID
- See Also:
- Constant Field Values
-
STORAGE_PATH
public static final File STORAGE_PATH
-
-