Package org.springframework.shell.test
Class ShellTestClient.DefaultShellClient
java.lang.Object
org.springframework.shell.test.ShellTestClient.DefaultShellClient
- All Implemented Interfaces:
Closeable,AutoCloseable,ShellTestClient
- Enclosing interface:
- ShellTestClient
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.shell.test.ShellTestClient
ShellTestClient.BaseShellSession<T extends ShellTestClient.BaseShellSession<T>>, ShellTestClient.Builder, ShellTestClient.DefaultBuilder, ShellTestClient.DefaultInteractiveShellSession, ShellTestClient.DefaultNonInteractiveShellSession, ShellTestClient.DefaultShellClient, ShellTestClient.InteractiveShellSession, ShellTestClient.NonInteractiveShellSession, ShellTestClient.ShellRunnerTask, ShellTestClient.ShellRunnerTaskData -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Run interactive shell session.nonInterative(String... args) Run non-interactive command session.screen()Read the screen.
-
Method Details
-
interactive
Description copied from interface:ShellTestClientRun interactive shell session.- Specified by:
interactivein interfaceShellTestClient- Returns:
- session for chaining
-
nonInterative
Description copied from interface:ShellTestClientRun non-interactive command session.- Specified by:
nonInterativein interfaceShellTestClient- Parameters:
args- the command arguments- Returns:
- session for chaining
-
screen
Description copied from interface:ShellTestClientRead the screen.- Specified by:
screenin interfaceShellTestClient- Returns:
- the screen
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-