8271726: JFR: should use equal() to check event fields in tests

Reviewed-by: egahlin
This commit is contained in:
Denghui Dong 2021-08-04 01:35:26 +00:00 committed by Yi Yang
parent a8408708b0
commit 43a6ba9677

View File

@ -63,8 +63,8 @@ public class TestHeapDump {
RecordedEvent e = events.get(0);
Events.assertField(e, "destination").equal(path.toString());
Events.assertField(e, "gcBeforeDump").equal(true);
Events.assertField(e, "onOutOfMemoryError").equals(false);
Events.assertField(e, "size").equals(Files.size(path));
Events.assertField(e, "onOutOfMemoryError").equal(false);
Events.assertField(e, "size").equal(Files.size(path));
System.out.println(e);
}
}