Class LoggingAppendersNTest.appenders_profile
java.lang.Object
info.ejava.assignments.logging.rentals.LoggingAppendersNTest.appenders_profile
- Enclosing class:
LoggingAppendersNTest
@Nested
@SpringBootTest
@DirtiesContext
@ActiveProfiles("appenders")
@ExtendWith(org.springframework.boot.test.system.OutputCaptureExtension.class)
@TestInstance(PER_CLASS)
class LoggingAppendersNTest.appenders_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) void(package private) void(package private) void(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
-
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_profile
appenders_profile()
-
-
Method Details
-
init
- Throws:
Exception
-
cleanup
@AfterAll void cleanup() -
logfile_exists
@Test void logfile_exists() -
logfile_has_data
- Throws:
IOException
-
has_no_trace_console
@Test void has_no_trace_console() -
has_no_debug_console
@Test void has_no_debug_console() -
has_no_trace_file
@Test void has_no_trace_file() -
has_no_debug_file
@Test void has_no_debug_file() -
has_no_repo_logs_in_console
@Test void has_no_repo_logs_in_console() -
has_no_repo_logs_in_logfile
@Test void has_no_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() -
has_svc_logs_in_console
@Test void has_svc_logs_in_console() -
has_svc_logs_in_logfile
@Test void has_svc_logs_in_logfile() -
has_no_line_numbers_in_logfile
@Test void has_no_line_numbers_in_logfile()
-