Improve test failure diagnostics

Change-Id: I42d5d56b3f01ef49eb62d784c1a80fbc9972f7d8
This commit is contained in:
Stephan Bergmann 2015-06-02 11:21:04 +02:00
parent 263b4b9985
commit e19cd71556

View File

@ -412,11 +412,13 @@ public class _XAccessibleComponent extends MultiMethodTest {
public void _getLocation() {
requiredMethod("getBounds()");
boolean result = true;
Point loc = oObj.getLocation();
result &= ((loc.X == bounds.X) && (loc.Y == bounds.Y));
boolean result = loc.X == bounds.X && loc.Y == bounds.Y;
if (!result) {
log.println(
"loc.X=" + loc.X + " vs. bounds.X=" + bounds.X + ", loc.Y="
+ loc.Y + " vs. bounds.Y=" + bounds.Y);
}
tRes.tested("getLocation()", result);
}