Basics

Spring Shell 提供了许多实用工具和注释,以帮助测试您的应用程序。测试支持由两个模块提供:spring-shell-test 包含核心项,而 spring-shell-test-autoconfigure 支持自动测试配置。

要测试 interactive 命令。

Unresolved include directive in modules/ROOT/pages/testing/basics.adoc - include::../../../../src/test/java/org/springframework/shell/docs/TestingSnippets.java[]

要测试 non-interactive 命令。

Unresolved include directive in modules/ROOT/pages/testing/basics.adoc - include::../../../../src/test/java/org/springframework/shell/docs/TestingSnippets.java[]