Home / Class/ SystemPropertyFormatterTests Class — spring-boot Architecture

SystemPropertyFormatterTests Class — spring-boot Architecture

Architecture documentation for the SystemPropertyFormatterTests class in SystemPropertyFormatterTests.java from the spring-boot codebase.

Entity Profile

Source Code

build-plugin/spring-boot-maven-plugin/src/test/java/org/springframework/boot/maven/SystemPropertyFormatterTests.java lines 26–53

class SystemPropertyFormatterTests {

	@Test
	void parseEmpty() {
		assertThat(SystemPropertyFormatter.format(null, null)).isEmpty();
	}

	@Test
	void parseOnlyKey() {
		assertThat(SystemPropertyFormatter.format("key1", null)).isEqualTo("-Dkey1");
	}

	@Test
	void parseKeyWithValue() {
		assertThat(SystemPropertyFormatter.format("key1", "value1")).isEqualTo("-Dkey1=value1");
	}

	@Test
	void parseKeyWithEmptyValue() {
		assertThat(SystemPropertyFormatter.format("key1", "")).isEqualTo("-Dkey1");
	}

	@Test
	void parseKeyWithOnlySpaces() {
		assertThat(SystemPropertyFormatter.format("key1", "   ")).isEqualTo("-Dkey1=   ");
	}

}

Analyze Your Own Codebase

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

Try Supermodel Free