Package io.molr.mole.core.support.domain
Class StubData
- java.lang.Object
-
- io.molr.mole.core.support.domain.StubData
-
public final class StubData extends java.lang.Object
Provides capabilities to Missions Stubs for accessing data and generating parameters
-
-
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(io.molr.commons.domain.Mission mission)
io.molr.commons.domain.Mission
mission()
io.molr.commons.domain.Placeholder<?>
parameterAt(int index)
java.util.Map<java.lang.String,java.lang.Object>
parameters(java.lang.Object... objects)
The parameter map required by the representedMission
is constructed by the arguments provided.java.lang.Class<?>
returnType()
-
-
-
Method Detail
-
from
public static StubData.Builder from(io.molr.commons.domain.Mission mission)
- Parameters:
mission
- theMission
being represented- Returns:
- the
StubData.Builder
to buildStubData
-
mission
public io.molr.commons.domain.Mission mission()
- Returns:
- the
Mission
being represented
-
returnType
public java.lang.Class<?> returnType()
- Returns:
- the type of return value for
Mission
being represented
-
parameterAt
public io.molr.commons.domain.Placeholder<?> parameterAt(int index)
- Parameters:
index
- the index of parameter- Returns:
- the
Placeholder
for parameter at given index
-
parameters
public java.util.Map<java.lang.String,java.lang.Object> parameters(java.lang.Object... objects)
The parameter map required by the representedMission
is constructed by the arguments provided.- Parameters:
objects
- the paramters toMission
being represented- Returns:
- the parameter map constructed with the arguments provided
-
-