Package org.springframework.shell.test
Class ShellTestClient.DefaultNonInteractiveShellSession
java.lang.Object
org.springframework.shell.test.ShellTestClient.DefaultNonInteractiveShellSession
- All Implemented Interfaces:
ShellTestClient.BaseShellSession<ShellTestClient.NonInteractiveShellSession>
,ShellTestClient.NonInteractiveShellSession
- Enclosing interface:
- ShellTestClient
public static class ShellTestClient.DefaultNonInteractiveShellSession
extends Object
implements ShellTestClient.NonInteractiveShellSession
-
Constructor Summary
ConstructorDescriptionDefaultNonInteractiveShellSession
(Shell shell, String[] args, BlockingQueue<ShellTestClient.ShellRunnerTaskData> blockingQueue, TerminalSession terminalSession, org.jline.terminal.Terminal terminal) -
Method Summary
-
Constructor Details
-
DefaultNonInteractiveShellSession
public DefaultNonInteractiveShellSession(Shell shell, String[] args, BlockingQueue<ShellTestClient.ShellRunnerTaskData> blockingQueue, TerminalSession terminalSession, org.jline.terminal.Terminal terminal)
-
-
Method Details
-
writeSequence
Description copied from interface:ShellTestClient.BaseShellSession
Get a write sequencer.- Specified by:
writeSequence
in interfaceShellTestClient.BaseShellSession<ShellTestClient.NonInteractiveShellSession>
- Returns:
- a write sequencer
-
write
Description copied from interface:ShellTestClient.BaseShellSession
Write plain text into a shell.- Specified by:
write
in interfaceShellTestClient.BaseShellSession<ShellTestClient.NonInteractiveShellSession>
- Parameters:
text
- the text- Returns:
- client for chaining
-
screen
Description copied from interface:ShellTestClient.BaseShellSession
Read the screen.- Specified by:
screen
in interfaceShellTestClient.BaseShellSession<ShellTestClient.NonInteractiveShellSession>
- Returns:
- the screen
-
run
Description copied from interface:ShellTestClient.BaseShellSession
Run a session.- Specified by:
run
in interfaceShellTestClient.BaseShellSession<ShellTestClient.NonInteractiveShellSession>
- Returns:
- client for chaining
-
isComplete
public boolean isComplete()- Specified by:
isComplete
in interfaceShellTestClient.BaseShellSession<ShellTestClient.NonInteractiveShellSession>
-