Skip to content

Commit 30ee3ce

Browse files
committed
Minor test improvement
1 parent 8f49fb7 commit 30ee3ce

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/test/java/tools/jackson/databind/objectid/ObjectId3838Test.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,12 @@ public void testUniformHandlingForMissingObjectId() throws Exception
196196

197197
// 2. but works with non-empty JSON object
198198
ResultGetter nonEmptyObj = (ResultGetter) MAPPER.readValue(a2q(jsonStr), cls);
199-
assertEquals("great", nonEmptyObj.result());
199+
String result = nonEmptyObj.result();
200+
if (!"great".equals(result)) {
201+
fail("Class '"+cls.getName()+", json "+jsonStr
202+
+" : should get 'great', got "
203+
+((result == null) ? "null" : String.format("'%s'", result)));
204+
}
200205
}
201206
}
202207
}

0 commit comments

Comments
 (0)