public class InputAction extends AbstractTestAction
| Modifier and Type | Field and Description |
|---|---|
static String |
ANSWER_SEPARATOR
Separates valid answer possibilities
|
description| Constructor and Description |
|---|
InputAction()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doExecute(TestContext context)
Subclasses may add custom execution logic here.
|
protected BufferedReader |
getInputReader()
Provides input stream reader from system in standard input stream.
|
String |
getMessage()
Gets the message.
|
String |
getValidAnswers()
Gets the validAnswers.
|
String |
getVariable()
Gets the variable.
|
InputAction |
setMessage(String message)
Sets the message.
|
InputAction |
setValidAnswers(String validAnswers)
Sets the valid answers.
|
InputAction |
setVariable(String variable)
Sets the variable.
|
execute, getActor, getDescription, getName, isDisabled, setActor, setDescription, setNamepublic static final String ANSWER_SEPARATOR
public void doExecute(TestContext context)
AbstractTestActiondoExecute in class AbstractTestActionprotected BufferedReader getInputReader()
public InputAction setMessage(String message)
message - the message to setpublic InputAction setVariable(String variable)
variable - the variable to setpublic InputAction setValidAnswers(String validAnswers)
validAnswers - the validAnswers to setpublic String getMessage()
public String getVariable()
public String getValidAnswers()
Copyright © 2008–2015 ConSol* Consulting&Solutions GmbH. All rights reserved.