diff --git a/logback-classic/src/test/java/ch/qos/logback/classic/spi/InvocationTest.java b/logback-classic/src/test/java/ch/qos/logback/classic/spi/InvocationTest.java
index 7ffd984e3f..0ae721ed6d 100644
--- a/logback-classic/src/test/java/ch/qos/logback/classic/spi/InvocationTest.java
+++ b/logback-classic/src/test/java/ch/qos/logback/classic/spi/InvocationTest.java
@@ -11,6 +11,7 @@
import ch.qos.logback.classic.testUtil.StringPrintStream;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
public class InvocationTest {
@@ -19,6 +20,8 @@ public class InvocationTest {
final String loggerName = this.getClass().getName();
StringPrintStream sps = new StringPrintStream(oldErr, true);
+ String CONNECTED_WITH_MESSAGE = "SLF4J(I): Connected with provider of type [ch.qos.logback.classic.spi.LogbackServiceProvider]";
+
@BeforeEach
public void setUp() throws Exception {
System.setErr(sps);
@@ -37,7 +40,8 @@ public void smoke() {
Logger logger = LoggerFactory.getLogger(this.getClass());
logger.debug("Hello world.");
- assertTrue(sps.stringList.isEmpty());
+ assertEquals(1, sps.stringList.size());
+ assertEquals(CONNECTED_WITH_MESSAGE, sps.stringList.get(0));
}
diff --git a/pom.xml b/pom.xml
index 64dc132710..1f16f1ce1e 100755
--- a/pom.xml
+++ b/pom.xml
@@ -5,6 +5,7 @@
4.0.0
+
ch.qos.logback
logback-parent
1.5.7-SNAPSHPOT
@@ -43,6 +44,7 @@
logback-core-blackbox
logback-classic
logback-classic-blackbox
+ logback-access
logback-examples