mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
junit comparison: pass null implicitly (IDEA-118372)
This commit is contained in:
+6
-2
@@ -96,8 +96,12 @@ public class ComparisonDetailsExtractor extends ExceptionPacketFactory {
|
||||
public Packet createPacket(OutputObjectRegistry registry, Object test) {
|
||||
Packet packet = super.createPacket(registry, test);
|
||||
packet.
|
||||
addLimitedString(myExpected).
|
||||
addLimitedString(myActual);
|
||||
addLimitedString(wrap(myExpected)).
|
||||
addLimitedString(wrap(myActual));
|
||||
return packet;
|
||||
}
|
||||
|
||||
private static String wrap(final String message) {
|
||||
return message != null ? message : "null";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user