Home / Class/ ItemMetadataTests Class — spring-boot Architecture

ItemMetadataTests Class — spring-boot Architecture

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

Entity Profile

Source Code

configuration-metadata/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/metadata/ItemMetadataTests.java lines 28–49

class ItemMetadataTests {

	@Test
	void newItemMetadataPrefixWithCapitalizedPrefix() {
		assertThat(newItemMetadataPrefix("Prefix.", "value")).isEqualTo("prefix.value");
	}

	@Test
	void newItemMetadataPrefixWithCamelCaseSuffix() {
		assertThat(newItemMetadataPrefix("prefix.", "myValue")).isEqualTo("prefix.my-value");
	}

	@Test
	void newItemMetadataPrefixWithUpperCamelCaseSuffix() {
		assertThat(newItemMetadataPrefix("prefix.", "MyValue")).isEqualTo("prefix.my-value");
	}

	private String newItemMetadataPrefix(String prefix, String suffix) {
		return ItemMetadata.newItemMetadataPrefix(prefix, suffix);
	}

}

Analyze Your Own Codebase

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

Try Supermodel Free