We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7167b23 commit ec20483Copy full SHA for ec20483
src/test/java/junit/tests/framework/AssertTest.java
@@ -82,15 +82,15 @@ public void testAssertStringNotEqualsNull() {
82
assertEquals("foo", null);
83
fail();
84
} catch (ComparisonFailure e) {
85
- e.getMessage(); // why no assertion?
+ String unused = e.getMessage(); // why no assertion?
86
}
87
88
89
public void testAssertNullNotEqualsNull() {
90
try {
91
assertEquals(null, new Object());
92
} catch (AssertionFailedError e) {
93
94
return;
95
96
@@ -168,4 +168,4 @@ public void testAssertNotSameFailsNull() {
168
169
170
171
-}
+}
0 commit comments