|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.easymock.EasyMockSupport
org.easymock.classextension.EasyMockSupport
EasyMockSupport
even for class
mocking
@Deprecated public class EasyMockSupport
This class is provided solely to allow an easier transition to EasyMock 3.0.
You should now use EasyMockSupport
for classes and
interfaces mocking.
Field Summary |
---|
Fields inherited from class org.easymock.EasyMockSupport |
---|
controls |
Constructor Summary | |
---|---|
EasyMockSupport()
Deprecated. |
Method Summary | ||
---|---|---|
IMocksControl |
createControl()
Deprecated. Creates a control, order checking is disabled by default. |
|
|
createMock(Class<T> toMock,
ConstructorArgs constructorArgs,
Method... mockedMethods)
Deprecated. Use EasyMockSupport.createMockBuilder(Class) instead |
|
|
createMock(Class<T> toMock,
Method... mockedMethods)
Deprecated. Use EasyMockSupport.createMockBuilder(Class) instead |
|
|
createMock(String name,
Class<T> toMock,
ConstructorArgs constructorArgs,
Method... mockedMethods)
Deprecated. Use EasyMockSupport.createMockBuilder(Class) instead |
|
|
createMock(String name,
Class<T> toMock,
Method... mockedMethods)
Deprecated. Use EasyMockSupport.createMockBuilder(Class) instead |
|
IMocksControl |
createNiceControl()
Deprecated. Creates a control, order checking is disabled by default, and the mock objects created by this control will return 0 ,
null or false for unexpected invocations. |
|
|
createNiceMock(Class<T> toMock,
ConstructorArgs constructorArgs,
Method... mockedMethods)
Deprecated. Use EasyMockSupport.createMockBuilder(Class) instead |
|
|
createNiceMock(Class<T> toMock,
Method... mockedMethods)
Deprecated. Use EasyMockSupport.createMockBuilder(Class) instead |
|
|
createNiceMock(String name,
Class<T> toMock,
ConstructorArgs constructorArgs,
Method... mockedMethods)
Deprecated. Use EasyMockSupport.createMockBuilder(Class) instead |
|
|
createNiceMock(String name,
Class<T> toMock,
Method... mockedMethods)
Deprecated. Use EasyMockSupport.createMockBuilder(Class) instead |
|
IMocksControl |
createStrictControl()
Deprecated. Creates a control, order checking is enabled by default. |
|
|
createStrictMock(Class<T> toMock,
ConstructorArgs constructorArgs,
Method... mockedMethods)
Deprecated. Use EasyMockSupport.createMockBuilder(Class) instead |
|
|
createStrictMock(Class<T> toMock,
Method... mockedMethods)
Deprecated. Use EasyMockSupport.createMockBuilder(Class) instead |
|
|
createStrictMock(String name,
Class<T> toMock,
ConstructorArgs constructorArgs,
Method... mockedMethods)
Deprecated. Use EasyMockSupport.createMockBuilder(Class) instead |
|
|
createStrictMock(String name,
Class<T> toMock,
Method... mockedMethods)
Deprecated. Use EasyMockSupport.createMockBuilder(Class) instead |
Methods inherited from class org.easymock.EasyMockSupport |
---|
createMock, createMock, createMock, createMock, createMockBuilder, createNiceMock, createNiceMock, createNiceMock, createNiceMock, createStrictMock, createStrictMock, createStrictMock, createStrictMock, replayAll, resetAll, resetAllToDefault, resetAllToNice, resetAllToStrict, verifyAll |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EasyMockSupport()
Method Detail |
---|
@Deprecated public <T> T createStrictMock(Class<T> toMock, Method... mockedMethods)
EasyMockSupport.createMockBuilder(Class)
instead
createStrictMock
in class EasyMockSupport
T
- the interface that the mock object should implement.toMock
- the class of the interface that the mock object should
implement.mockedMethods
- methods that will be mocked, other methods will behave
normally
@Deprecated public <T> T createStrictMock(String name, Class<T> toMock, Method... mockedMethods)
EasyMockSupport.createMockBuilder(Class)
instead
createStrictMock
in class EasyMockSupport
T
- the interface that the mock object should implement.name
- the name of the mock object.toMock
- the class of the interface that the mock object should
implement.mockedMethods
- methods that will be mocked, other methods will behave
normally
@Deprecated public <T> T createStrictMock(Class<T> toMock, ConstructorArgs constructorArgs, Method... mockedMethods)
EasyMockSupport.createMockBuilder(Class)
instead
T
- the interface that the mock object should implement.toMock
- the class of the interface that the mock object should
implement.constructorArgs
- constructor and parameters used to instantiate the mock.mockedMethods
- methods that will be mocked, other methods will behave
normally
@Deprecated public <T> T createStrictMock(String name, Class<T> toMock, ConstructorArgs constructorArgs, Method... mockedMethods)
EasyMockSupport.createMockBuilder(Class)
instead
T
- the interface that the mock object should implement.name
- the name of the mock object.toMock
- the class of the interface that the mock object should
implement.constructorArgs
- constructor and parameters used to instantiate the mock.mockedMethods
- methods that will be mocked, other methods will behave
normally
@Deprecated public <T> T createMock(Class<T> toMock, Method... mockedMethods)
EasyMockSupport.createMockBuilder(Class)
instead
createMock
in class EasyMockSupport
T
- the interface that the mock object should implement.toMock
- the class of the interface that the mock object should
implement.mockedMethods
- methods that will be mocked, other methods will behave
normally
@Deprecated public <T> T createMock(String name, Class<T> toMock, Method... mockedMethods)
EasyMockSupport.createMockBuilder(Class)
instead
createMock
in class EasyMockSupport
T
- the interface that the mock object should implement.name
- the name of the mock object.toMock
- the class of the interface that the mock object should
implement.mockedMethods
- methods that will be mocked, other methods will behave
normally
@Deprecated public <T> T createMock(Class<T> toMock, ConstructorArgs constructorArgs, Method... mockedMethods)
EasyMockSupport.createMockBuilder(Class)
instead
T
- the interface that the mock object should implement.toMock
- the class of the interface that the mock object should
implement.constructorArgs
- constructor and parameters used to instantiate the mock.mockedMethods
- methods that will be mocked, other methods will behave
normally
@Deprecated public <T> T createMock(String name, Class<T> toMock, ConstructorArgs constructorArgs, Method... mockedMethods)
EasyMockSupport.createMockBuilder(Class)
instead
T
- the interface that the mock object should implement.name
- the name of the mock object.toMock
- the class of the interface that the mock object should
implement.constructorArgs
- constructor and parameters used to instantiate the mock.mockedMethods
- methods that will be mocked, other methods will behave
normally
@Deprecated public <T> T createNiceMock(Class<T> toMock, Method... mockedMethods)
EasyMockSupport.createMockBuilder(Class)
instead
0
,
null
or false
for unexpected invocations.
createNiceMock
in class EasyMockSupport
T
- the interface that the mock object should implement.toMock
- the class of the interface that the mock object should
implement.mockedMethods
- methods that will be mocked, other methods will behave
normally
@Deprecated public <T> T createNiceMock(String name, Class<T> toMock, Method... mockedMethods)
EasyMockSupport.createMockBuilder(Class)
instead
0
,
null
or false
for unexpected invocations.
createNiceMock
in class EasyMockSupport
T
- the interface that the mock object should implement.name
- the name of the mock object.toMock
- the class of the interface that the mock object should
implement.mockedMethods
- methods that will be mocked, other methods will behave
normally
@Deprecated public <T> T createNiceMock(Class<T> toMock, ConstructorArgs constructorArgs, Method... mockedMethods)
EasyMockSupport.createMockBuilder(Class)
instead
0
,
null
or false
for unexpected invocations.
T
- the interface that the mock object should implement.toMock
- the class of the interface that the mock object should
implement.constructorArgs
- constructor and parameters used to instantiate the mock.mockedMethods
- methods that will be mocked, other methods will behave
normally
@Deprecated public <T> T createNiceMock(String name, Class<T> toMock, ConstructorArgs constructorArgs, Method... mockedMethods)
EasyMockSupport.createMockBuilder(Class)
instead
0
,
null
or false
for unexpected invocations.
T
- the interface that the mock object should implement.name
- the name of the mock object.toMock
- the class of the interface that the mock object should
implement.constructorArgs
- constructor and parameters used to instantiate the mock.mockedMethods
- methods that will be mocked, other methods will behave
normally
public IMocksControl createStrictControl()
EasyMockSupport
createStrictControl
in class EasyMockSupport
public IMocksControl createControl()
EasyMockSupport
createControl
in class EasyMockSupport
public IMocksControl createNiceControl()
EasyMockSupport
0
,
null
or false
for unexpected invocations.
createNiceControl
in class EasyMockSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |