IMockConfiguration@Beta public class MockConfiguration extends java.lang.Object implements IMockConfiguration
| Constructor | Description |
|---|---|
MockConfiguration(java.lang.String name,
java.lang.Class<?> type,
MockNature nature,
MockImplementation implementation,
java.util.Map<java.lang.String,java.lang.Object> options) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<java.lang.Object> |
getConstructorArgs() |
Returns the constructor arguments to be used for creating the mock object.
|
IDefaultResponse |
getDefaultResponse() |
Returns the default response strategy for the mock object.
|
MockImplementation |
getImplementation() |
Returns the implementation of the mock object.
|
java.lang.String |
getName() |
Returns the name of the mock object.
|
MockNature |
getNature() |
Returns the nature of the mock object.
|
java.lang.Class<?> |
getType() |
Returns the interface or class type of the mock object.
|
boolean |
isGlobal() |
Tells whether a mock object stands in for all objects of the mocked type, or just for itself.
|
boolean |
isUseObjenesis() |
Tells whether the Objenesis library, if available on the class path, should be used for constructing
the mock object, rather than calling a constructor.
|
boolean |
isVerified() |
Tells whether invocations on the mock object should be verified.
|
public MockConfiguration(java.lang.String name,
java.lang.Class<?> type,
MockNature nature,
MockImplementation implementation,
java.util.Map<java.lang.String,java.lang.Object> options)
public java.lang.String getName()
IMockConfigurationgetName in interface IMockConfigurationpublic java.lang.Class<?> getType()
IMockConfigurationgetType in interface IMockConfigurationpublic MockNature getNature()
IMockConfigurationgetNature in interface IMockConfigurationpublic MockImplementation getImplementation()
IMockConfigurationgetImplementation in interface IMockConfigurationpublic java.util.List<java.lang.Object> getConstructorArgs()
IMockConfigurationgetConstructorArgs in interface IMockConfigurationpublic IDefaultResponse getDefaultResponse()
IMockConfigurationgetDefaultResponse in interface IMockConfigurationpublic boolean isGlobal()
IMockConfigurationMockImplementation.isGlobal in interface IMockConfigurationpublic boolean isVerified()
IMockConfigurationisVerified in interface IMockConfigurationpublic boolean isUseObjenesis()
IMockConfigurationisUseObjenesis in interface IMockConfigurationCopyright © 2018. All rights reserved