Class MockCommandLauncher
- java.lang.Object
-
- io.jenkins.plugins.venaficodesigning.MockCommandLauncher
-
- All Implemented Interfaces:
CommandLauncher
public class MockCommandLauncher extends Object implements CommandLauncher
-
-
Constructor Summary
Constructors Constructor Description MockCommandLauncher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
cmds()
CommandLauncher
cmds(String... args)
Map<String,String>
envs()
CommandLauncher
envs(Map<String,String> overrides)
int
getCode()
String
getOutput()
boolean
isStarted()
CommandLauncher
masks(boolean... values)
String
pwd()
CommandLauncher
pwd(String path)
boolean
quiet()
CommandLauncher
quiet(boolean value)
void
setCode(int code)
void
setOutput(String value)
void
startAndJoin()
-
-
-
Method Detail
-
cmds
public String[] cmds()
-
cmds
public CommandLauncher cmds(@Nonnull String... args)
- Specified by:
cmds
in interfaceCommandLauncher
-
envs
public CommandLauncher envs(@Nonnull Map<String,String> overrides)
- Specified by:
envs
in interfaceCommandLauncher
-
masks
public CommandLauncher masks(@Nonnull boolean... values)
- Specified by:
masks
in interfaceCommandLauncher
-
quiet
public boolean quiet()
-
quiet
public CommandLauncher quiet(boolean value)
- Specified by:
quiet
in interfaceCommandLauncher
-
pwd
public String pwd()
-
pwd
public CommandLauncher pwd(@Nonnull String path)
- Specified by:
pwd
in interfaceCommandLauncher
-
startAndJoin
public void startAndJoin() throws IOException, InterruptedException
- Specified by:
startAndJoin
in interfaceCommandLauncher
- Throws:
IOException
InterruptedException
-
isStarted
public boolean isStarted()
-
getCode
public int getCode()
- Specified by:
getCode
in interfaceCommandLauncher
-
setCode
public void setCode(int code)
-
getOutput
public String getOutput()
- Specified by:
getOutput
in interfaceCommandLauncher
-
setOutput
public void setOutput(String value)
-
-