Package org.springframework.shell.test
Class ShellTestClient.DefaultInteractiveShellSession
java.lang.Object
org.springframework.shell.test.ShellTestClient.DefaultInteractiveShellSession
- All Implemented Interfaces:
ShellTestClient.BaseShellSession<ShellTestClient.InteractiveShellSession>,ShellTestClient.InteractiveShellSession
- Enclosing interface:
- ShellTestClient
public static class ShellTestClient.DefaultInteractiveShellSession
extends Object
implements ShellTestClient.InteractiveShellSession
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultInteractiveShellSession(Shell shell, PromptProvider promptProvider, org.jline.reader.LineReader lineReader, BlockingQueue<ShellTestClient.ShellRunnerTaskData> blockingQueue, TerminalSession terminalSession, org.jline.terminal.Terminal terminal) -
Method Summary
-
Constructor Details
-
DefaultInteractiveShellSession
public DefaultInteractiveShellSession(Shell shell, PromptProvider promptProvider, org.jline.reader.LineReader lineReader, 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.InteractiveShellSession>- Returns:
- a write sequencer
-
write
Description copied from interface:ShellTestClient.BaseShellSessionWrite plain text into a shell.- Specified by:
writein interfaceShellTestClient.BaseShellSession<ShellTestClient.InteractiveShellSession>- Parameters:
text- the text- Returns:
- client for chaining
-
screen
Description copied from interface:ShellTestClient.BaseShellSessionRead the screen.- Specified by:
screenin interfaceShellTestClient.BaseShellSession<ShellTestClient.InteractiveShellSession>- Returns:
- the screen
-
run
Description copied from interface:ShellTestClient.BaseShellSessionRun a session.- Specified by:
runin interfaceShellTestClient.BaseShellSession<ShellTestClient.InteractiveShellSession>- Returns:
- client for chaining
-
isComplete
public boolean isComplete()- Specified by:
isCompletein interfaceShellTestClient.BaseShellSession<ShellTestClient.InteractiveShellSession>
-