public class TestCommandContextFactory extends CommandContextFactory
Constructor and Description |
---|
TestCommandContextFactory() |
TestCommandContextFactory(org.osgi.framework.BundleContext bCtx) |
Modifier and Type | Method and Description |
---|---|
CommandContext |
createContext(Arguments args) |
Console |
getConsole() |
String |
getError() |
String |
getOutput() |
void |
reset() |
void |
setInput(String input)
For simulating user input in tests that require user interaction.
|
void |
setInputThrowsException(IOException ex) |
getCommandRegistry
public TestCommandContextFactory()
public TestCommandContextFactory(org.osgi.framework.BundleContext bCtx)
public CommandContext createContext(Arguments args)
createContext
in class CommandContextFactory
public String getOutput()
public void setInput(String input)
input
- the user's input, including any CR characterspublic String getError()
public void reset()
public Console getConsole()
getConsole
in class CommandContextFactory
public void setInputThrowsException(IOException ex)
Copyright © 2013. All Rights Reserved.