|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mockito.internal.creation.settings.CreationSettings<T>
public class CreationSettings<T>
by Szczepan Faber, created at: 4/9/12
Field Summary | |
---|---|
protected Answer<java.lang.Object> |
defaultAnswer
|
protected java.util.Set<java.lang.Class> |
extraInterfaces
|
protected java.util.List<InvocationListener> |
invocationListeners
|
protected MockName |
mockName
|
protected java.lang.String |
name
|
protected boolean |
serializable
|
protected java.lang.Object |
spiedInstance
|
protected java.lang.Class<T> |
typeToMock
|
Constructor Summary | |
---|---|
CreationSettings()
|
|
CreationSettings(CreationSettings copy)
|
Method Summary | |
---|---|
Answer<java.lang.Object> |
getDefaultAnswer()
the default answer for this mock, see MockSettings.defaultAnswer(org.mockito.stubbing.Answer) . |
java.util.Set<java.lang.Class> |
getExtraInterfaces()
the extra interfaces the mock object should implement. |
java.util.List<InvocationListener> |
getInvocationListeners()
the invocation listeners attached to this mock, see MockSettings.invocationListeners(org.mockito.listeners.InvocationListener...) . |
MockName |
getMockName()
the name of this mock, as printed on verification errors; see MockSettings.name(java.lang.String) . |
java.lang.String |
getName()
|
java.lang.Object |
getSpiedInstance()
the spied instance - needed for spies. |
java.lang.Class<T> |
getTypeToMock()
Mocked type. |
boolean |
isSerializable()
if the mock is serializable, see MockSettings.serializable() . |
CreationSettings<T> |
setExtraInterfaces(java.util.Set<java.lang.Class> extraInterfaces)
|
CreationSettings<T> |
setMockName(MockName mockName)
|
CreationSettings<T> |
setTypeToMock(java.lang.Class<T> typeToMock)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.Class<T> typeToMock
protected java.util.Set<java.lang.Class> extraInterfaces
protected java.lang.String name
protected java.lang.Object spiedInstance
protected Answer<java.lang.Object> defaultAnswer
protected MockName mockName
protected boolean serializable
protected java.util.List<InvocationListener> invocationListeners
Constructor Detail |
---|
public CreationSettings()
public CreationSettings(CreationSettings copy)
Method Detail |
---|
public java.lang.Class<T> getTypeToMock()
MockCreationSettings
getTypeToMock
in interface MockCreationSettings<T>
public CreationSettings<T> setTypeToMock(java.lang.Class<T> typeToMock)
public java.util.Set<java.lang.Class> getExtraInterfaces()
MockCreationSettings
getExtraInterfaces
in interface MockCreationSettings<T>
public CreationSettings<T> setExtraInterfaces(java.util.Set<java.lang.Class> extraInterfaces)
public java.lang.String getName()
public java.lang.Object getSpiedInstance()
MockCreationSettings
getSpiedInstance
in interface MockCreationSettings<T>
public Answer<java.lang.Object> getDefaultAnswer()
MockCreationSettings
MockSettings.defaultAnswer(org.mockito.stubbing.Answer)
.
getDefaultAnswer
in interface MockCreationSettings<T>
public MockName getMockName()
MockCreationSettings
MockSettings.name(java.lang.String)
.
getMockName
in interface MockCreationSettings<T>
public CreationSettings<T> setMockName(MockName mockName)
public boolean isSerializable()
MockCreationSettings
MockSettings.serializable()
.
isSerializable
in interface MockCreationSettings<T>
public java.util.List<InvocationListener> getInvocationListeners()
MockCreationSettings
MockSettings.invocationListeners(org.mockito.listeners.InvocationListener...)
.
getInvocationListeners
in interface MockCreationSettings<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |