AnsiOutputTests Class — spring-boot Architecture
Architecture documentation for the AnsiOutputTests class in AnsiOutputTests.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot/src/test/java/org/springframework/boot/ansi/AnsiOutputTests.java lines 32–51
class AnsiOutputTests {
@BeforeAll
static void enable() {
AnsiOutput.setEnabled(Enabled.ALWAYS);
}
@AfterAll
static void reset() {
AnsiOutput.setEnabled(Enabled.DETECT);
}
@Test
void encoding() {
String encoded = AnsiOutput.toString("A", AnsiColor.RED, AnsiStyle.BOLD, "B", AnsiStyle.NORMAL, "D",
AnsiColor.GREEN, "E", AnsiStyle.FAINT, "F");
assertThat(encoded).isEqualTo("A[31;1mB[0mD[32mE[2mF[0;39m");
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free