Class MissionStubs


  • public final class MissionStubs
    extends Object
    A factory class to generate Mission Stubs
    Author:
    HimanshuSahu31
    • Constructor Detail

      • MissionStubs

        public MissionStubs()
    • Method Detail

      • stub

        public static VoidStub0 stub​(String missionName)
        Constructs a VoidStub0 which has zero arguments and no return type
        Parameters:
        missionName - the name of the Mission
        Returns:
        an instance of VoidStub0
      • stub

        public static <R> MissionStub0<R> stub​(String missionName,
                                               Class<R> returnType)
        Constructs a MissionStub0 which has zero arguments and a return type
        Type Parameters:
        R - the type for return value of the Mission
        Parameters:
        missionName - the name of the Mission
        returnType - the return type of the Mission
        Returns:
        an instance of MissionStub0