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 TypeMethodDescriptionvoid
close()
Run interactive shell session.nonInterative
(String... args) Run non-interactive command session.screen()
Read the screen.
-
Method Details
-
interactive
Description copied from interface:ShellTestClient
Run interactive shell session.- Specified by:
interactive
in interfaceShellTestClient
- Returns:
- session for chaining
-
nonInterative
Description copied from interface:ShellTestClient
Run non-interactive command session.- Specified by:
nonInterative
in interfaceShellTestClient
- Parameters:
args
- the command arguments- Returns:
- session for chaining
-
screen
Description copied from interface:ShellTestClient
Read the screen.- Specified by:
screen
in interfaceShellTestClient
- Returns:
- the screen
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-