@Beta public enum MockImplementation extends java.lang.Enum<MockImplementation>
MockingApi
factory method.Enum Constant and Description |
---|
GROOVY
An implementation specifically targeting Groovy callers.
|
JAVA
A generic implementation targeting any callers.
|
Modifier and Type | Method and Description |
---|---|
static MockImplementation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MockImplementation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MockImplementation JAVA
MockingApi.Mock()
,
MockingApi.Stub()
, and MockingApi.Spy()
factory methods.public static final MockImplementation GROOVY
MockingApi.GroovyMock()
, MockingApi.GroovyStub()
,
and MockingApi.GroovySpy()
factory methods.public static MockImplementation[] values()
for (MockImplementation c : MockImplementation.values()) System.out.println(c);
public static MockImplementation valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2015. All rights reserved