|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockito.internal.configuration.Configuration
public class Configuration
Singleton implementation of MockitoConfiguration
| Field Summary | |
|---|---|
static java.lang.ThreadLocal<Configuration> |
CONFIG
|
| Method Summary | |
|---|---|
ReturnValues |
getReturnValues()
returns currently set ReturnValues |
static Configuration |
instance()
gets the singleton instance of a configuration |
void |
resetReturnValues()
Resets ReturnValues implementation to the default one: MockitoProperties.DEFAULT_RETURN_VALUES |
void |
setReturnValues(ReturnValues returnValues)
Sets ReturnValues implementation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.ThreadLocal<Configuration> CONFIG
| Method Detail |
|---|
public static Configuration instance()
public ReturnValues getReturnValues()
MockitoConfigurationReturnValues
getReturnValues in interface MockitoConfigurationpublic void setReturnValues(ReturnValues returnValues)
MockitoConfigurationReturnValues implementation.
Allows to change the values returned by unstubbed methods.
setReturnValues in interface MockitoConfigurationpublic void resetReturnValues()
MockitoConfigurationReturnValues implementation to the default one: MockitoProperties.DEFAULT_RETURN_VALUES
resetReturnValues in interface MockitoConfiguration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||