public class CommandExpectationGroup extends Object
| Modifier | Constructor and Description |
|---|---|
|
CommandExpectationGroup()
Constructs a CommandExpectationGroup without masked commands.
|
protected |
CommandExpectationGroup(boolean maskCommands)
Constructs a CommandExpectationGroup with commands masked as specified.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCommand(String command)
Adds a single command to the end of the current list of commands.
|
void |
addCommands(List<String> commands)
Appends a list of commands to the end of the current list of commands.
|
void |
addExpectation(String expectation)
Adds a single expectation to the end of the current list of expectations.
|
void |
addExpectations(List<String> expectations)
Appends a list of expectations to the end of the current list of expectations.
|
List<String> |
getCommands()
Retrieves the current list of commands.
|
List<String> |
getExpectations()
Retrieves the current list of expectations.
|
boolean |
maskCommands()
Retrieves the mask commands indicator.
|
String |
toString()
Overrides the toString method.
|
public CommandExpectationGroup()
protected CommandExpectationGroup(boolean maskCommands)
maskCommands - A boolean value indicating whether to mask the commands.public void addCommand(String command)
command - The command to add.public void addCommands(List<String> commands)
commands - The list of command to add.public void addExpectation(String expectation)
expectation - The expectation to add.public void addExpectations(List<String> expectations)
expectations - The list of expectations to add.public List<String> getCommands()
public List<String> getExpectations()
public boolean maskCommands()
Copyright © 2019. All rights reserved.