Class LoggingAppendersNTest.appenders_trace_profile
java.lang.Object
info.ejava.assignments.logging.rentals.LoggingAppendersNTest.appenders_trace_profile
- Enclosing class:
LoggingAppendersNTest
@Nested
@SpringBootTest
@DirtiesContext
@ActiveProfiles({"appenders","trace"})
@ExtendWith(org.springframework.boot.test.system.OutputCaptureExtension.class)
@TestInstance(PER_CLASS)
class LoggingAppendersNTest.appenders_trace_profile
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.springframework.boot.CommandLineRunnerprivate org.springframework.boot.test.system.CapturedOutputprivate Stringprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidcleanup()(package private) void(package private) void(package private) void(package private) void(package private) voidinit(org.springframework.boot.test.system.CapturedOutput output) (package private) void(package private) void(package private) void(package private) void(package private) void
-
Field Details
-
appCommand
@Autowired private org.springframework.boot.CommandLineRunner appCommand -
console
private org.springframework.boot.test.system.CapturedOutput console -
logfile
-
startingPos
private long startingPos
-
-
Constructor Details
-
appenders_trace_profile
appenders_trace_profile()
-
-
Method Details
-
init
- Throws:
Exception
-
cleanup
@AfterAll void cleanup() -
logfile_exists
@Test void logfile_exists() -
logfile_has_data
- Throws:
IOException
-
has_no_repo_logs_in_console
@Test void has_no_repo_logs_in_console() -
has_repo_logs_in_logfile
@Test void has_repo_logs_in_logfile() -
has_xy_logs_in_console
@Test void has_xy_logs_in_console() -
has_xy_logs_in_logfile
@Test void has_xy_logs_in_logfile() -
mdc_not_in_console
@Test void mdc_not_in_console() -
mdc_in_logfile
@Test void mdc_in_logfile() -
line_numbers_in_logfile
@Test void line_numbers_in_logfile()
-