org.test4j.module.jmockit.utility
类 ExpectationsUtil

java.lang.Object
  继承者 org.test4j.module.jmockit.utility.ExpectationsUtil

public class ExpectationsUtil
extends Object

用于注册或获取当前线程下当前使用的org.jmock.Expectations实例
用于expectation参数断言调用org.test4j.hamcrest.iassert.common.intf.IAssert.wanted( ) 时,向当前的expectation实例注册期望发生的方法等

作者:
darui.wudr

构造方法摘要
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
 

构造方法详细信息

ExpectationsUtil

public ExpectationsUtil()
方法详细信息

register

public static void register(Expectations ex)
注册当前线程下的mockit.Expectations实例

参数:
ex -

register

public static void register(Verifications ve)
注册当前线程下的mockit.Verifications实例

参数:
ex -

isJmockitExpectations

public static boolean isJmockitExpectations()

isJmockitVerifications

public static boolean isJmockitVerifications()

addArgMatcher

public static void addArgMatcher(Matcher matcher)
往mockit.Expectations中增加参数断言

参数:
matcher -

convert

public static ArgumentMatcher convert(Matcher matcher)
把官方的ext.test4j.hamcrest.Matcher类转换为mockit.external.hamcrest.Matcher类

参数:
matcher -
返回:


Copyright © 2013. All rights reserved.