Package org.citrusframework.actions
Class InputAction.Builder
java.lang.Object
org.citrusframework.AbstractTestActionBuilder<InputAction,InputAction.Builder>
org.citrusframework.actions.InputAction.Builder
- All Implemented Interfaces:
TestActionBuilder<InputAction>
- Enclosing class:
- InputAction
public static final class InputAction.Builder
extends AbstractTestActionBuilder<InputAction,InputAction.Builder>
Action builder.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.citrusframework.TestActionBuilder
TestActionBuilder.DelegatingTestActionBuilder<T extends TestAction> -
Field Summary
Fields inherited from class org.citrusframework.AbstractTestActionBuilder
selfFields inherited from interface org.citrusframework.TestActionBuilder
logger, RESOURCE_PATH, TYPE_RESOLVER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the valid answers.build()static InputAction.Builderinput()Fluent API action building entry method used in Java DSL.static InputAction.BuilderFluent API action building entry method used in Java DSL.Sets the message displayed to the user.reader(BufferedReader reader) Sets the input reader.Stores the result to a test variable.Methods inherited from class org.citrusframework.AbstractTestActionBuilder
actor, description, getActor, getDescription, getName, name
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
input
Fluent API action building entry method used in Java DSL.- Returns:
-
input
Fluent API action building entry method used in Java DSL.- Parameters:
message-- Returns:
-
message
Sets the message displayed to the user.- Parameters:
message- the message to set
-
result
Stores the result to a test variable.- Parameters:
variable- the variable to set
-
reader
Sets the input reader.- Parameters:
reader- the input reader to set
-
answers
Sets the valid answers.- Parameters:
answers- the validAnswers to set
-
build
-