|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectorg.activiti.engine.test.mock.Mocks
public class Mocks
Registry for mock objects.
Usage: Mocks.register("myMock", myMock);
This class lets you register mock objects that will then be used by the
MockElResolver
. It binds a map of mock objects to ThreadLocal. This way, the
mocks can be set up independent of how the process engine configuration is built.
构造方法摘要 | |
---|---|
Mocks()
|
方法摘要 | |
---|---|
static Object |
get(Object key)
This method returns the mock object registered under the provided key or null if there is no object for the provided key. |
static void |
register(String key,
Object value)
This method lets you register a mock object. |
static void |
reset()
This method resets the internal map of mock objects. |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public Mocks()
方法详细信息 |
---|
public static void register(String key, Object value)
MockExpressionManager
with your process engine configuration.
key
- the key under which the mock object will be registeredvalue
- the mock objectpublic static Object get(Object key)
key
- the key of the requested object
public static void reset()
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |