Package | Description |
---|---|
org.easymock | |
org.easymock.internal |
Modifier and Type | Method | Description |
---|---|---|
static MockType |
MockType.valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static MockType[] |
MockType.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method | Description |
---|---|---|
static IMocksControl |
EasyMock.createControl(MockType type) |
Creates a control of the requested type.
|
IMocksControl |
EasyMockSupport.createControl(MockType type) |
Creates a control of the given type.
|
static <T> T |
EasyMock.createMock(java.lang.String name,
MockType type,
java.lang.Class<T> toMock) |
Creates a mock object, of the requested type and name, that implements the given interface
or extends the given class
|
static <T> T |
EasyMock.createMock(MockType type,
java.lang.Class<T> toMock) |
Creates a mock object, of the requested type, that implements the given interface
or extends the given class.
|
<T> T |
EasyMockSupport.createMock(java.lang.String name,
MockType type,
java.lang.Class<T> toMock) |
Creates a mock object of the requested type that implements the given interface or extends
the given class
|
<T> T |
EasyMockSupport.createMock(MockType type,
java.lang.Class<T> toMock) |
Creates a mock object of the requested type that implements the given interface or extends
the given class
|
T |
IMockBuilder.createMock(java.lang.String name,
MockType type) |
Create a named mock of the request type from this builder.
|
T |
IMockBuilder.createMock(MockType type) |
Create mock of the request type from this builder.
|
static <T> T |
EasyMock.mock(java.lang.String name,
MockType type,
java.lang.Class<T> toMock) |
Creates a mock object, of the requested type and name, that implements the given interface
or extends the given class
|
static <T> T |
EasyMock.mock(MockType type,
java.lang.Class<T> toMock) |
Creates a mock object, of the requested type, that implements the given interface
or extends the given class
|
<T> T |
EasyMockSupport.mock(java.lang.String name,
MockType type,
java.lang.Class<T> toMock) |
Creates a mock object of the requested type that implements the given interface or extends
the given class
|
<T> T |
EasyMockSupport.mock(MockType type,
java.lang.Class<T> toMock) |
Creates a mock object of the requested type that implements the given interface or extends
the given class
|
Modifier and Type | Method | Description |
---|---|---|
MockType |
MocksControl.MockType.getRealType() |
Deprecated.
|
MockType |
MocksControl.getType() |
Modifier and Type | Method | Description |
---|---|---|
T |
MockBuilder.createMock(java.lang.String name,
MockType type) |
|
T |
MockBuilder.createMock(MockType type) |
Constructor | Description |
---|---|
MocksControl(MockType type) |
Copyright © 2001-2019 EasyMock contributors. This documentation is provided under the terms of the Apache 2 licence.