diff --git a/gradle.properties b/gradle.properties index 906bd84..282a1eb 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,8 +26,8 @@ commonsCollections4Version = 4.4 ezmorphVersion = 3.0.0 jacocoVersion = 0.8.12 junitVersion = 4.13.2 -slf4jVersion = 1.7.32 -slf4jTestVersion = 1.2.0 +slf4jVersion = 2.0.13 +slf4jTestVersion = 3.0.1 xmlunitVersion = 1.6 xomVersion = 1.3.8 diff --git a/subprojects/json-lib-core/json-lib-core.gradle b/subprojects/json-lib-core/json-lib-core.gradle index 423f865..d06f9f4 100644 --- a/subprojects/json-lib-core/json-lib-core.gradle +++ b/subprojects/json-lib-core/json-lib-core.gradle @@ -29,5 +29,5 @@ dependencies { api("org.kordamp.ezmorph:ezmorph-core:$ezmorphVersion") testImplementation("xmlunit:xmlunit:$xmlunitVersion") - testImplementation("uk.org.lidalia:slf4j-test:$slf4jTestVersion") + testImplementation("com.github.valfirst:slf4j-test:$slf4jTestVersion") } diff --git a/subprojects/json-lib-core/src/test/java/org/kordamp/json/xml/TestForcedArrayElementFlag.java b/subprojects/json-lib-core/src/test/java/org/kordamp/json/xml/TestForcedArrayElementFlag.java index a6825c9..c29e6af 100644 --- a/subprojects/json-lib-core/src/test/java/org/kordamp/json/xml/TestForcedArrayElementFlag.java +++ b/subprojects/json-lib-core/src/test/java/org/kordamp/json/xml/TestForcedArrayElementFlag.java @@ -17,13 +17,14 @@ */ package org.kordamp.json.xml; -import com.google.common.collect.ImmutableList; +import org.slf4j.event.Level; +import com.github.valfirst.slf4jtest.LoggingEvent; +import com.github.valfirst.slf4jtest.TestLogger; +import com.github.valfirst.slf4jtest.TestLoggerFactory; import junit.framework.TestCase; import org.kordamp.json.JSONObject; -import uk.org.lidalia.slf4jext.Level; -import uk.org.lidalia.slf4jtest.LoggingEvent; -import uk.org.lidalia.slf4jtest.TestLogger; -import uk.org.lidalia.slf4jtest.TestLoggerFactory; + +import java.util.List; import static java.util.Arrays.asList; @@ -87,7 +88,7 @@ public void test_different_elements_should_be_forced_array_with_log_warning() { // Check if warning appears in log String expectedWarningMessage = "Child elements [GaijiRefMaps,ForcedArrayElement] of forced array element [Properties] are not from the same type"; boolean expectedWarningFound = false; - ImmutableList loggingEvents = logger.getLoggingEvents(); + List loggingEvents = logger.getLoggingEvents(); for (LoggingEvent le : loggingEvents) { if (le.getLevel() == Level.WARN) { expectedWarningFound = le.getMessage().equals(expectedWarningMessage); } }