Package io.molr.mole.core.support
Class MissionStubs
- java.lang.Object
-
- io.molr.mole.core.support.MissionStubs
-
public final class MissionStubs extends Object
A factory class to generate Mission Stubs- Author:
- HimanshuSahu31
-
-
Constructor Summary
Constructors Constructor Description MissionStubs()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VoidStub0
stub(String missionName)
Constructs aVoidStub0
which has zero arguments and no return typestatic <R> MissionStub0<R>
stub(String missionName, Class<R> returnType)
Constructs aMissionStub0
which has zero arguments and a return type
-
-
-
Method Detail
-
stub
public static VoidStub0 stub(String missionName)
Constructs aVoidStub0
which has zero arguments and no return type
-
stub
public static <R> MissionStub0<R> stub(String missionName, Class<R> returnType)
Constructs aMissionStub0
which has zero arguments and a return type- Type Parameters:
R
- the type for return value of theMission
- Parameters:
missionName
- the name of theMission
returnType
- the return type of theMission
- Returns:
- an instance of
MissionStub0
-
-