Skip to content

Commit

Permalink
deps: Update slf4j to 2.0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Jun 3, 2024
1 parent 26d2bf9 commit 547cf46
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion subprojects/json-lib-core/json-lib-core.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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<LoggingEvent> loggingEvents = logger.getLoggingEvents();
List<LoggingEvent> loggingEvents = logger.getLoggingEvents();
for (LoggingEvent le : loggingEvents) {
if (le.getLevel() == Level.WARN) { expectedWarningFound = le.getMessage().equals(expectedWarningMessage); }
}
Expand Down

0 comments on commit 547cf46

Please sign in to comment.