public class InvokeRecordUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
INDEX_OF_TEST_CLASS
[0]Thread → [1]TestableUtil/TestableTool → [2]TestClass
|
| Constructor and Description |
|---|
InvokeRecordUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getInvokeIdentify(String mockMethodName,
String testClass,
String testCaseName)
Get identify key for mock invocation record
|
static List<Object[]> |
getInvokeRecord(String identify)
Get mock method invoke count
|
static void |
recordMockInvoke(Object[] args,
boolean isConstructor)
Record mock method invoke event
|
public static final int INDEX_OF_TEST_CLASS
public static void recordMockInvoke(Object[] args, boolean isConstructor)
args - invocation parametersisConstructor - whether mocked method is constructorpublic static String getInvokeIdentify(String mockMethodName, String testClass, String testCaseName)
mockMethodName - mock method nametestClass - test class nametestCaseName - test case nameCopyright © 2020. All rights reserved.