Package org.springframework.shell.test
Class ShellWriteSequence.DefaultShellWriteSequence
java.lang.Object
org.springframework.shell.test.ShellWriteSequence.DefaultShellWriteSequence
- All Implemented Interfaces:
ShellWriteSequence
- Enclosing interface:
- ShellWriteSequence
public static class ShellWriteSequence.DefaultShellWriteSequence
extends Object
implements ShellWriteSequence
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.shell.test.ShellWriteSequence
ShellWriteSequence.DefaultShellWriteSequence
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the result.Sequence terminal carriage return.Sequence terminal clear screen.Sequence from command with expectedcarriage return
.cr()
Sequence terminal carriage return.ctrl
(char c) Sequence terminal ctrl.keyDown()
Sequence terminal key down.keyLeft()
Sequence terminal key left.keyRight()
Sequence terminal key right.keyUp()
Sequence terminal key up.space()
Sequence terminal space.Sequence text.
-
Method Details
-
carriageReturn
Description copied from interface:ShellWriteSequence
Sequence terminal carriage return.- Specified by:
carriageReturn
in interfaceShellWriteSequence
- Returns:
- a sequence for chaining
-
clearScreen
Description copied from interface:ShellWriteSequence
Sequence terminal clear screen.- Specified by:
clearScreen
in interfaceShellWriteSequence
- Returns:
- a sequence for chaining
-
ctrl
Description copied from interface:ShellWriteSequence
Sequence terminal ctrl.- Specified by:
ctrl
in interfaceShellWriteSequence
- Returns:
- a sequence for chaining
-
command
Description copied from interface:ShellWriteSequence
Sequence from command with expectedcarriage return
.- Specified by:
command
in interfaceShellWriteSequence
- Parameters:
command
- the command- Returns:
- a sequence for chaining
-
cr
Description copied from interface:ShellWriteSequence
Sequence terminal carriage return. Alias forShellWriteSequence.carriageReturn()
- Specified by:
cr
in interfaceShellWriteSequence
- Returns:
- a sequence for chaining
- See Also:
-
keyUp
Description copied from interface:ShellWriteSequence
Sequence terminal key up.- Specified by:
keyUp
in interfaceShellWriteSequence
- Returns:
- a sequence for chaining
-
keyDown
Description copied from interface:ShellWriteSequence
Sequence terminal key down.- Specified by:
keyDown
in interfaceShellWriteSequence
- Returns:
- a sequence for chaining
-
keyLeft
Description copied from interface:ShellWriteSequence
Sequence terminal key left.- Specified by:
keyLeft
in interfaceShellWriteSequence
- Returns:
- a sequence for chaining
-
keyRight
Description copied from interface:ShellWriteSequence
Sequence terminal key right.- Specified by:
keyRight
in interfaceShellWriteSequence
- Returns:
- a sequence for chaining
-
text
Description copied from interface:ShellWriteSequence
Sequence text.- Specified by:
text
in interfaceShellWriteSequence
- Parameters:
text
- the text- Returns:
- a sequence for chaining
-
space
Description copied from interface:ShellWriteSequence
Sequence terminal space.- Specified by:
space
in interfaceShellWriteSequence
- Returns:
- a sequence for chaining
-
build
Description copied from interface:ShellWriteSequence
Build the result.- Specified by:
build
in interfaceShellWriteSequence
- Returns:
- the result
-