Skip to content

Commit be3a411

Browse files
authored
Remove implicit JUnit4 dependency from LogCapturingExtension (#2864) (#2865)
LogCapturingExtension (a JUnit5 InvocationInterceptor) was using classOf[LogCapturing] to initialize its logger, which resolves to the JUnit4 TestRule class in the same package. Change to use classOf[LogCapturingExtension] instead.
1 parent f62b01e commit be3a411

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

actor-testkit-typed/src/main/scala/org/apache/pekko/actor/testkit/typed/javadsl/LogCapturingExtension.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class LogCapturingExtension extends InvocationInterceptor {
2424

2525
private val capturingAppender = CapturingAppender.get("")
2626

27-
private val myLogger = LoggerFactory.getLogger(classOf[LogCapturing])
27+
private val myLogger = LoggerFactory.getLogger(classOf[LogCapturingExtension])
2828

2929
@throws[Throwable]
3030
override def interceptTestMethod(invocation: Invocation[Void], invocationContext: ReflectiveInvocationContext[Method],

0 commit comments

Comments
 (0)