hudson.cli
Class CLICommandInvoker

java.lang.Object
  extended by hudson.cli.CLICommandInvoker

public class CLICommandInvoker
extends Object

Helper class to invoke CLICommand and check the response.

Author:
ogondza

Nested Class Summary
static class CLICommandInvoker.Matcher
           
static class CLICommandInvoker.Result
           
 
Constructor Summary
CLICommandInvoker(JenkinsRule rule, hudson.cli.CLICommand command)
           
CLICommandInvoker(JenkinsRule rule, String command)
           
 
Method Summary
 CLICommandInvoker authorizedTo(hudson.security.Permission... permissions)
           
 CLICommandInvoker.Result invoke()
           
 CLICommandInvoker.Result invokeWithArgs(String... args)
           
 hudson.model.User user()
           
 CLICommandInvoker withArgs(String... args)
           
 CLICommandInvoker withStdin(InputStream stdin)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLICommandInvoker

public CLICommandInvoker(JenkinsRule rule,
                         hudson.cli.CLICommand command)

CLICommandInvoker

public CLICommandInvoker(JenkinsRule rule,
                         String command)
Method Detail

authorizedTo

public CLICommandInvoker authorizedTo(hudson.security.Permission... permissions)

withStdin

public CLICommandInvoker withStdin(InputStream stdin)

withArgs

public CLICommandInvoker withArgs(String... args)

invokeWithArgs

public CLICommandInvoker.Result invokeWithArgs(String... args)

invoke

public CLICommandInvoker.Result invoke()

user

public hudson.model.User user()


Copyright © 2004-2014. All Rights Reserved.