|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.test4j.module.jmockit.utility.ExpectationsUtil
public class ExpectationsUtil
用于注册或获取当前线程下当前使用的org.jmock.Expectations实例
用于expectation参数断言调用org.test4j.hamcrest.iassert.common.intf.IAssert.wanted( )
时,向当前的expectation实例注册期望发生的方法等
| 构造方法摘要 | |
|---|---|
ExpectationsUtil()
|
|
| 方法摘要 | |
|---|---|
static void |
addArgMatcher(Matcher matcher)
往mockit.Expectations中增加参数断言 |
static ArgumentMatcher |
convert(Matcher matcher)
把官方的ext.test4j.hamcrest.Matcher类转换为mockit.external.hamcrest.Matcher类 |
static boolean |
isJmockitExpectations()
|
static boolean |
isJmockitVerifications()
|
static void |
register(Expectations ex)
注册当前线程下的mockit.Expectations实例 |
static void |
register(Verifications ve)
注册当前线程下的mockit.Verifications实例 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public ExpectationsUtil()
| 方法详细信息 |
|---|
public static void register(Expectations ex)
ex - public static void register(Verifications ve)
ex - public static boolean isJmockitExpectations()
public static boolean isJmockitVerifications()
public static void addArgMatcher(Matcher matcher)
matcher - public static ArgumentMatcher convert(Matcher matcher)
matcher -
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||