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()CommandLaunchercmds(String... args)Map<String,String>envs()CommandLauncherenvs(Map<String,String> overrides)intgetCode()StringgetOutput()booleanisStarted()CommandLaunchermasks(boolean... values)Stringpwd()CommandLauncherpwd(String path)booleanquiet()CommandLauncherquiet(boolean value)voidsetCode(int code)voidsetOutput(String value)voidstartAndJoin()
-
-
-
Method Detail
-
cmds
public String[] cmds()
-
cmds
public CommandLauncher cmds(@Nonnull String... args)
- Specified by:
cmdsin interfaceCommandLauncher
-
envs
public CommandLauncher envs(@Nonnull Map<String,String> overrides)
- Specified by:
envsin interfaceCommandLauncher
-
masks
public CommandLauncher masks(@Nonnull boolean... values)
- Specified by:
masksin interfaceCommandLauncher
-
quiet
public boolean quiet()
-
quiet
public CommandLauncher quiet(boolean value)
- Specified by:
quietin interfaceCommandLauncher
-
pwd
public String pwd()
-
pwd
public CommandLauncher pwd(@Nonnull String path)
- Specified by:
pwdin interfaceCommandLauncher
-
startAndJoin
public void startAndJoin() throws IOException, InterruptedException- Specified by:
startAndJoinin interfaceCommandLauncher- Throws:
IOExceptionInterruptedException
-
isStarted
public boolean isStarted()
-
getCode
public int getCode()
- Specified by:
getCodein interfaceCommandLauncher
-
setCode
public void setCode(int code)
-
getOutput
public String getOutput()
- Specified by:
getOutputin interfaceCommandLauncher
-
setOutput
public void setOutput(String value)
-
-