@Deprecated public class MockClassControl<T> extends org.easymock.MockControl<T>
MockClassControl control the behavior of their
associated mock objects. For more information, see the EasyMock
documentation.| Modifier and Type | Method and Description |
|---|---|
static <T> org.easymock.MockControl<T> |
createControl(Class<T> classToMock)
Deprecated.
Creates a mock control object for the specified class or interface.
|
static <T> MockClassControl<T> |
createControl(Class<T> classToMock,
Class<?>[] constructorTypes,
Object[] constructorArgs)
Deprecated.
No need to pick a constructor anymore. Constructor arguments
are now ignored. Just use
createControl(Class) |
static <T> MockClassControl<T> |
createControl(Class<T> classToMock,
Class<?>[] constructorTypes,
Object[] constructorArgs,
Method[] mockedMethods)
Deprecated.
No need to pick a constructor anymore. Constructor arguments
are now ignored. Just use
createControl(Class, Method[]) |
static <T> MockClassControl<T> |
createControl(Class<T> classToMock,
Method... mockedMethods)
Deprecated.
Same as
createControl(Class)but allows to pass a list of
methods to mock. |
static <T> org.easymock.MockControl<T> |
createNiceControl(Class<T> classToMock)
Deprecated.
Creates a mock control object for the specified class or interface.
|
static <T> MockClassControl<T> |
createNiceControl(Class<T> classToMock,
Class<?>[] constructorTypes,
Object[] constructorArgs)
Deprecated.
No need to pick a constructor anymore. Constructor arguments
are now ignored. Just use
createNiceControl(Class) |
static <T> MockClassControl<T> |
createNiceControl(Class<T> classToMock,
Class<?>[] constructorTypes,
Object[] constructorArgs,
Method... mockedMethods)
Deprecated.
No need to pick a constructor anymore. Constructor arguments
are now ignored. Just use
createNiceControl(Class, Method[]) |
static <T> MockClassControl<T> |
createNiceControl(Class<T> classToMock,
Method... mockedMethods)
Deprecated.
Same as
createNiceControl(Class, Method[])but allows to pass a
list of methods to mock. |
static <T> org.easymock.MockControl<T> |
createStrictControl(Class<T> classToMock)
Deprecated.
Creates a mock control object for the specified class or interface.
|
static <T> MockClassControl<T> |
createStrictControl(Class<T> classToMock,
Class<?>[] constructorTypes,
Object[] constructorArgs)
Deprecated.
No need to pick a constructor anymore. Constructor arguments
are now ignored. Just use
createStrictControl(Class) |
static <T> MockClassControl<T> |
createStrictControl(Class<T> classToMock,
Class<?>[] constructorTypes,
Object[] constructorArgs,
Method... mockedMethods)
Deprecated.
No need to pick a constructor anymore. Constructor arguments
are now ignored. Just use
createStrictControl(Class, Method[]) |
static <T> MockClassControl<T> |
createStrictControl(Class<T> classToMock,
Method... mockedMethods)
Deprecated.
Same as
createStrictControl(Class)but allows to pass a list of
methods to mock. |
expectAndDefaultReturn, expectAndDefaultThrow, expectAndReturn, expectAndReturn, expectAndReturn, expectAndReturn, expectAndReturn, expectAndReturn, expectAndReturn, expectAndReturn, expectAndThrow, expectAndThrow, expectAndThrow, expectAndThrow, getMock, replay, reset, setDefaultMatcher, setDefaultReturnValue, setDefaultThrowable, setDefaultVoidCallable, setMatcher, setReturnValue, setReturnValue, setReturnValue, setReturnValue, setThrowable, setThrowable, setThrowable, setThrowable, setVoidCallable, setVoidCallable, setVoidCallable, setVoidCallable, verifypublic static <T> org.easymock.MockControl<T> createControl(Class<T> classToMock)
MockClassControland its associated mock object will not check
the order of expected method calls. An unexpected method call on the mock
object will lead to an AssertionFailedError.classToMock - the class to mock.MockClassControlinstance)public static <T> MockClassControl<T> createControl(Class<T> classToMock, Method... mockedMethods)
createControl(Class)but allows to pass a list of
methods to mock. All the other methods won't be. It means that if these
methods are called, their real code will be executed.classToMock - the class to mockmockedMethods - Methods to be mocked. If null, all methods will be mocked.public static <T> org.easymock.MockControl<T> createStrictControl(Class<T> classToMock)
MockClassControland its associated mock object will check the
order of expected method calls. An unexpected method call on the mock
object will lead to an AssertionFailedError.classToMock - the class to mock.MockClassControlinstance)public static <T> MockClassControl<T> createStrictControl(Class<T> classToMock, Method... mockedMethods)
createStrictControl(Class)but allows to pass a list of
methods to mock. All the other methods won't be. It means that if these
methods are called, their real code will be executed.classToMock - the class to mockmockedMethods - Methods to be mocked. If null, all methods will be mocked.public static <T> org.easymock.MockControl<T> createNiceControl(Class<T> classToMock)
MockClassControland its associated mock object will check not
the order of expected method calls. An unexpected method call on the mock
object will return an empty value (0, null, false).classToMock - the class to mock.MockClassControlinstance)public static <T> MockClassControl<T> createNiceControl(Class<T> classToMock, Method... mockedMethods)
createNiceControl(Class, Method[])but allows to pass a
list of methods to mock. All the other methods won't be. It means that if
these methods are called, their real code will be executed.classToMock - the class to mockmockedMethods - Methods to be mocked. If null, all methods will be mocked.@Deprecated public static <T> MockClassControl<T> createControl(Class<T> classToMock, Class<?>[] constructorTypes, Object[] constructorArgs)
createControl(Class)@Deprecated public static <T> MockClassControl<T> createControl(Class<T> classToMock, Class<?>[] constructorTypes, Object[] constructorArgs, Method[] mockedMethods)
createControl(Class, Method[])@Deprecated public static <T> MockClassControl<T> createStrictControl(Class<T> classToMock, Class<?>[] constructorTypes, Object[] constructorArgs)
createStrictControl(Class)@Deprecated public static <T> MockClassControl<T> createStrictControl(Class<T> classToMock, Class<?>[] constructorTypes, Object[] constructorArgs, Method... mockedMethods)
createStrictControl(Class, Method[])@Deprecated public static <T> MockClassControl<T> createNiceControl(Class<T> classToMock, Class<?>[] constructorTypes, Object[] constructorArgs)
createNiceControl(Class)@Deprecated public static <T> MockClassControl<T> createNiceControl(Class<T> classToMock, Class<?>[] constructorTypes, Object[] constructorArgs, Method... mockedMethods)
createNiceControl(Class, Method[])Copyright © 2003-2012 OFFIS, Henri Tremblay. All Rights Reserved.