@Documented @Retention(value=RUNTIME) @Target(value={METHOD,FIELD,PARAMETER}) public @interface MC
MockSettings
Modifier and Type | Optional Element and Description |
---|---|
org.mockito.Answers |
answer
Specifies default answers to interactions.
|
Class<?>[] |
extraInterfaces
Specifies extra interfaces the mock should implement.
|
String |
field
If the collaborator service being injected is a field of the SUT, this
value should indicate the name of the field.
|
String |
name
Specifies mock name.
|
int |
value
If the collaborator service being injected is a constructor or method
parameter of the SUT, this value should indicate the index of the
parameter.
|
public abstract int value
public abstract String field
public abstract org.mockito.Answers answer
public abstract String name
Copyright © 2009–2023 Oracle Corporation. All rights reserved.