Home / Class/ CharArrayFormatterTests Class — spring-boot Architecture

CharArrayFormatterTests Class — spring-boot Architecture

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

Entity Profile

Source Code

core/spring-boot/src/test/java/org/springframework/boot/convert/CharArrayFormatterTests.java lines 32–52

class CharArrayFormatterTests {

	@ConversionServiceTest
	void convertFromCharArrayToStringShouldConvert(ConversionService conversionService) {
		char[] source = { 'b', 'o', 'o', 't' };
		String converted = conversionService.convert(source, String.class);
		assertThat(converted).isEqualTo("boot");
	}

	@ConversionServiceTest
	void convertFromStringToCharArrayShouldConvert(ConversionService conversionService) {
		String source = "boot";
		char[] converted = conversionService.convert(source, char[].class);
		assertThat(converted).containsExactly('b', 'o', 'o', 't');
	}

	static Stream<? extends Arguments> conversionServices() {
		return ConversionServiceArguments.with(new CharArrayFormatter());
	}

}

Analyze Your Own Codebase

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

Try Supermodel Free