public class MockContextUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static InheritableThreadLocal<MockContext> |
context
Container to store context information of each test case
|
static int |
INDEX_OF_TEST_CLASS
[0]Thread → [1]MockContextUtil → [2]TestClass
|
| Constructor and Description |
|---|
MockContextUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clean()
Clean up mock context
should be invoked at the end of each test case execution
|
static void |
init()
Initialize mock context
should be invoked at the beginning of each test case method
|
static Map<String,Object> |
parameters() |
public static InheritableThreadLocal<MockContext> context
public static final int INDEX_OF_TEST_CLASS
Copyright © 2021. All rights reserved.