org.test4j.module.jmockit.extend
类 JMockitNonStrictExpectations

java.lang.Object
  继承者 mockit.Expectations
      继承者 mockit.NonStrictExpectations
          继承者 org.test4j.module.jmockit.extend.JMockitNonStrictExpectations
所有已实现的接口:
Test4JInvocations
直接已知子类:
IMockict.NonStrictExpectations

public class JMockitNonStrictExpectations
extends NonStrictExpectations
implements Test4JInvocations


字段摘要
protected static CharSequence $
           
protected static Object any
           
protected static Boolean anyBoolean
           
protected static Byte anyByte
           
protected static Character anyChar
           
protected static Double anyDouble
           
protected static Float anyFloat
           
protected static Integer anyInt
           
protected static Long anyLong
           
protected static Short anyShort
           
protected static String anyString
           
protected  ExpectationsResult expectationsResult
           
protected static Object forEachInvocation
           
protected  InvokeTimes invokerTimes
           
protected static int maxTimes
           
protected static int minTimes
           
protected  TheStyleAssertion the
           
protected static int times
           
 
从类 mockit.Expectations 继承的字段
result
 
构造方法摘要
JMockitNonStrictExpectations()
           
JMockitNonStrictExpectations(int numberOfIterations, Object... classesOrObjectsToBePartiallyMocked)
           
JMockitNonStrictExpectations(Object... classesOrObjectsToBePartiallyMocked)
           
 
方法摘要
protected
<T> T
getField(Class<?> arg0, Class<T> arg1)
           
protected
<T> T
getField(Class<?> arg0, String arg1)
           
protected
<T> T
getField(Object arg0, Class<T> arg1)
           
protected
<T> T
getField(Object arg0, String arg1)
           
protected
<T> T
invoke(Class<?> arg0, String arg1, Object... arg2)
           
protected
<T> T
invoke(Object arg0, String arg1, Object... arg2)
           
protected
<T> T
newInnerInstance(String arg0, Object arg1, Object... arg2)
           
protected
<T> T
newInstance(String arg0, Class<?>[] arg1, Object... arg2)
           
protected
<T> T
newInstance(String arg0, Object... arg1)
           
protected
<T> T
onInstance(T arg0)
           
protected  void setField(Class<?> arg0, Object arg1)
           
protected  void setField(Class<?> arg0, String arg1, Object arg2)
           
protected  void setField(Object arg0, Object arg1)
           
protected  void setField(Object arg0, String arg1, Object arg2)
           
 void thenReturn(Object value)
          mock返回对象值
 void thenReturn(Object firstValue, Object... remainingValues)
          mock依次返回的对象值
<T> ExpectationsResult
when(T o)
           
protected
<T> T
with(Delegate<T> arg0)
           
protected
<T> T
with(Matcher argumentMatcher)
           
protected
<T> T
with(Object arg0)
           
protected
<T> T
with(T argValue, Matcher argumentMatcher)
           
protected
<T> T
with(T arg0, Object arg1)
           
protected
<T> T
withAny(T arg0)
           
protected
<T> T
withCapture(List<T> arg0)
           
protected  double withEqual(double arg0, double arg1)
           
protected  float withEqual(float arg0, double arg1)
           
protected
<T> T
withEqual(T arg0)
           
protected
<T> T
withInstanceLike(T arg0)
           
protected
<T> T
withInstanceOf(Class<T> arg0)
           
protected
<T extends CharSequence>
T
withMatch(T arg0)
           
protected
<T> T
withNotEqual(T arg0)
           
protected
<T> T
withNotNull()
           
protected
<T> T
withNull()
           
protected
<T extends CharSequence>
T
withPrefix(T arg0)
           
protected
<T> T
withSameInstance(T arg0)
           
protected
<T extends CharSequence>
T
withSubstring(T arg0)
           
protected
<T extends CharSequence>
T
withSuffix(T arg0)
           
 
从类 mockit.Expectations 继承的方法
notStrict, returns, returns
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

invokerTimes

protected InvokeTimes invokerTimes

expectationsResult

protected ExpectationsResult expectationsResult

the

protected final TheStyleAssertion the

any

protected static final Object any

anyString

protected static final String anyString

anyLong

protected static final Long anyLong

anyInt

protected static final Integer anyInt

anyShort

protected static final Short anyShort

anyByte

protected static final Byte anyByte

anyBoolean

protected static final Boolean anyBoolean

anyChar

protected static final Character anyChar

anyDouble

protected static final Double anyDouble

anyFloat

protected static final Float anyFloat

forEachInvocation

protected static Object forEachInvocation

times

protected static int times

minTimes

protected static int minTimes

maxTimes

protected static int maxTimes

$

protected static CharSequence $
构造方法详细信息

JMockitNonStrictExpectations

public JMockitNonStrictExpectations()

JMockitNonStrictExpectations

public JMockitNonStrictExpectations(int numberOfIterations,
                                    Object... classesOrObjectsToBePartiallyMocked)

JMockitNonStrictExpectations

public JMockitNonStrictExpectations(Object... classesOrObjectsToBePartiallyMocked)
方法详细信息

when

public <T> ExpectationsResult when(T o)

thenReturn

public void thenReturn(Object value)
从接口 Test4JInvocations 复制的描述
mock返回对象值

指定者:
接口 Test4JInvocations 中的 thenReturn

thenReturn

public void thenReturn(Object firstValue,
                       Object... remainingValues)
从接口 Test4JInvocations 复制的描述
mock依次返回的对象值

指定者:
接口 Test4JInvocations 中的 thenReturn

with

protected final <T> T with(Matcher argumentMatcher)

with

protected final <T> T with(T argValue,
                           Matcher argumentMatcher)

onInstance

protected final <T> T onInstance(T arg0)

with

protected final <T> T with(T arg0,
                           Object arg1)

with

protected final <T> T with(Object arg0)

with

protected final <T> T with(Delegate<T> arg0)

withAny

protected final <T> T withAny(T arg0)

withCapture

protected final <T> T withCapture(List<T> arg0)

withEqual

protected final <T> T withEqual(T arg0)

withEqual

protected final double withEqual(double arg0,
                                 double arg1)

withEqual

protected final float withEqual(float arg0,
                                double arg1)

withInstanceLike

protected final <T> T withInstanceLike(T arg0)

withInstanceOf

protected final <T> T withInstanceOf(Class<T> arg0)

withNotEqual

protected final <T> T withNotEqual(T arg0)

withNull

protected final <T> T withNull()

withNotNull

protected final <T> T withNotNull()

withSameInstance

protected final <T> T withSameInstance(T arg0)

withSubstring

protected final <T extends CharSequence> T withSubstring(T arg0)

withPrefix

protected final <T extends CharSequence> T withPrefix(T arg0)

withSuffix

protected final <T extends CharSequence> T withSuffix(T arg0)

withMatch

protected final <T extends CharSequence> T withMatch(T arg0)

newInstance

protected final <T> T newInstance(String arg0,
                                  Class<?>[] arg1,
                                  Object... arg2)

newInstance

protected final <T> T newInstance(String arg0,
                                  Object... arg1)

newInnerInstance

protected final <T> T newInnerInstance(String arg0,
                                       Object arg1,
                                       Object... arg2)

invoke

protected final <T> T invoke(Object arg0,
                             String arg1,
                             Object... arg2)

invoke

protected final <T> T invoke(Class<?> arg0,
                             String arg1,
                             Object... arg2)

getField

protected final <T> T getField(Object arg0,
                               String arg1)

getField

protected final <T> T getField(Object arg0,
                               Class<T> arg1)

getField

protected final <T> T getField(Class<?> arg0,
                               String arg1)

getField

protected final <T> T getField(Class<?> arg0,
                               Class<T> arg1)

setField

protected final void setField(Object arg0,
                              String arg1,
                              Object arg2)

setField

protected final void setField(Object arg0,
                              Object arg1)

setField

protected final void setField(Class<?> arg0,
                              String arg1,
                              Object arg2)

setField

protected final void setField(Class<?> arg0,
                              Object arg1)


Copyright © 2013. All rights reserved.