Skip to content

Commit 6709cd1

Browse files
committed
Fix MarkerTest assertions
1 parent 66e3bc3 commit 6709cd1

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

log4j-slf4j-impl/src/test/java/org/apache/logging/slf4j/MarkerTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,10 @@ public void testEquals() {
131131
final Marker log4jParent = MarkerManager.getMarker(parentMakerName);
132132
final Marker log4jMarker = MarkerManager.getMarker(childMarkerName);
133133
final Marker log4jMarker2 = MarkerManager.getMarker(childMarkerName);
134-
assertEquals(log4jParent, log4jParent);
135-
assertEquals(log4jMarker, log4jMarker);
136134
assertEquals(log4jMarker, log4jMarker2);
137135
assertEquals(slf4jMarker, slf4jMarker2);
138136
assertNotEquals(log4jParent, log4jMarker);
139-
assertNotEquals(log4jMarker, log4jParent);
137+
assertNotEquals(slf4jParent, slf4jMarker);
140138
}
141139

142140
@Test

log4j-slf4j2-impl/src/test/java/org/apache/logging/slf4j/MarkerTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,10 @@ public void testEquals() {
131131
final Marker log4jParent = MarkerManager.getMarker(parentMakerName);
132132
final Marker log4jMarker = MarkerManager.getMarker(childMarkerName);
133133
final Marker log4jMarker2 = MarkerManager.getMarker(childMarkerName);
134-
assertEquals(log4jParent, log4jParent);
135-
assertEquals(log4jMarker, log4jMarker);
136134
assertEquals(log4jMarker, log4jMarker2);
137135
assertEquals(slf4jMarker, slf4jMarker2);
138136
assertNotEquals(log4jParent, log4jMarker);
139-
assertNotEquals(log4jMarker, log4jParent);
137+
assertNotEquals(slf4jParent, slf4jMarker);
140138
}
141139

142140
@Test

0 commit comments

Comments
 (0)