Home / Function/ unrecognizedCommandsAreHandledGracefully() — spring-boot Function Reference

unrecognizedCommandsAreHandledGracefully() — spring-boot Function Reference

Architecture documentation for the unrecognizedCommandsAreHandledGracefully() function in CommandLineIT.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  b3e93618_dae6_6358_3f6a_4498f8e57e28["unrecognizedCommandsAreHandledGracefully()"]
  78fb0658_ee96_7956_c944_edf60d9da30f["invoke()"]
  b3e93618_dae6_6358_3f6a_4498f8e57e28 -->|calls| 78fb0658_ee96_7956_c944_edf60d9da30f
  fb0f6ac0_6aa3_e825_c305_0a967e58b750["getErrorOutput()"]
  b3e93618_dae6_6358_3f6a_4498f8e57e28 -->|calls| fb0f6ac0_6aa3_e825_c305_0a967e58b750
  b4c2c04d_027f_ca96_93f5_b3b8a70a5fb7["getStandardOutput()"]
  b3e93618_dae6_6358_3f6a_4498f8e57e28 -->|calls| b4c2c04d_027f_ca96_93f5_b3b8a70a5fb7
  style b3e93618_dae6_6358_3f6a_4498f8e57e28 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

cli/spring-boot-cli/src/intTest/java/org/springframework/boot/cli/CommandLineIT.java lines 62–68

	@Test
	void unrecognizedCommandsAreHandledGracefully() throws IOException, InterruptedException {
		Invocation cli = this.cli.invoke("not-a-real-command");
		assertThat(cli.await()).isEqualTo(1);
		assertThat(cli.getErrorOutput()).contains("'not-a-real-command' is not a valid command");
		assertThat(cli.getStandardOutput()).isEmpty();
	}

Domain

Subdomains

Frequently Asked Questions

What does unrecognizedCommandsAreHandledGracefully() do?
unrecognizedCommandsAreHandledGracefully() is a function in the spring-boot codebase.
What does unrecognizedCommandsAreHandledGracefully() call?
unrecognizedCommandsAreHandledGracefully() calls 3 function(s): getErrorOutput, getStandardOutput, invoke.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free