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()
IMockConfiguration
getName
in interface IMockConfiguration
public java.lang.Class<?> getType()
IMockConfiguration
getType
in interface IMockConfiguration
public MockNature getNature()
IMockConfiguration
getNature
in interface IMockConfiguration
public MockImplementation getImplementation()
IMockConfiguration
getImplementation
in interface IMockConfiguration
public java.util.List<java.lang.Object> getConstructorArgs()
IMockConfiguration
getConstructorArgs
in interface IMockConfiguration
public IDefaultResponse getDefaultResponse()
IMockConfiguration
getDefaultResponse
in interface IMockConfiguration
public boolean isGlobal()
IMockConfiguration
MockImplementation
.isGlobal
in interface IMockConfiguration
public boolean isVerified()
IMockConfiguration
isVerified
in interface IMockConfiguration
public boolean isUseObjenesis()
IMockConfiguration
isUseObjenesis
in interface IMockConfiguration
Copyright © 2018. All rights reserved