Skip to content

Commit

Permalink
Don't use deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
bassages committed Nov 5, 2024
1 parent 29999f0 commit 2880f1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/nl/homeserver/LogCaptorExtension.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public void beforeTestExecution(final ExtensionContext context) {
.map(annotatedElement -> annotatedElement.getAnnotation(CaptureLogging.class))
.orElseThrow(() -> new RuntimeException("Unable to find annotation"));
logger = (Logger) getLogger(annotation.value());
logger.setLevel(Level.ALL);
logger.setLevel(Level.TRACE);
mockAppender = mock(Appender.class);
loggingEventCaptor = ArgumentCaptor.forClass(LoggingEvent.class);
doAnswer(invocation -> null).when(mockAppender).doAppend(loggingEventCaptor.capture());
Expand Down

0 comments on commit 2880f1c

Please sign in to comment.