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
ConstructorsConstructorDescriptionDefaultNonInteractiveShellSession(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.BaseShellSessionGet a write sequencer.- Specified by:
writeSequencein interfaceShellTestClient.BaseShellSession<ShellTestClient.NonInteractiveShellSession>- Returns:
- a write sequencer
-
write
Description copied from interface:ShellTestClient.BaseShellSessionWrite plain text into a shell.- Specified by:
writein interfaceShellTestClient.BaseShellSession<ShellTestClient.NonInteractiveShellSession>- Parameters:
text- the text- Returns:
- client for chaining
-
screen
Description copied from interface:ShellTestClient.BaseShellSessionRead the screen.- Specified by:
screenin interfaceShellTestClient.BaseShellSession<ShellTestClient.NonInteractiveShellSession>- Returns:
- the screen
-
run
Description copied from interface:ShellTestClient.BaseShellSessionRun a session.- Specified by:
runin interfaceShellTestClient.BaseShellSession<ShellTestClient.NonInteractiveShellSession>- Returns:
- client for chaining
-
isComplete
public boolean isComplete()- Specified by:
isCompletein interfaceShellTestClient.BaseShellSession<ShellTestClient.NonInteractiveShellSession>
-