Package io.molr.mole.core.support.domain
Class StubData
- java.lang.Object
-
- io.molr.mole.core.support.domain.StubData
-
public final class StubData extends Object
Provides capabilities to Missions Stubs for accessing data and generating parameters- Author:
- HimanshuSahu31
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StubData.Builder
The Builder class to buildStubData
with the fields set
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StubData.Builder
from(Mission mission)
Mission
mission()
Placeholder<?>
parameterAt(int index)
Map<String,Object>
parameters(Object... objects)
The parameter map required by the representedMission
is constructed by the arguments provided.Class<?>
returnType()
-
-
-
Method Detail
-
from
public static StubData.Builder from(Mission mission)
- Parameters:
mission
- theMission
being represented- Returns:
- the
StubData.Builder
to buildStubData
-
returnType
public Class<?> returnType()
- Returns:
- the type of return value for
Mission
being represented
-
parameterAt
public Placeholder<?> parameterAt(int index)
- Parameters:
index
- the index of parameter- Returns:
- the
Placeholder
for parameter at given index
-
-