org.test4j.Context Maven / Gradle / Ivy
package org.test4j;
import org.test4j.mock.functions.Executor;
import java.lang.reflect.Method;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.Supplier;
/**
* 单例, 存储测试过程中全局数据
*
* @author darui.wu
*/
public final class Context {
/**
* 进入mocking zone的层数
*/
private static final AtomicInteger noMockingCount = new AtomicInteger(0);
private static ThreadLocal currTestClass = new InheritableThreadLocal<>();
private static ThreadLocal