Improve test failure output

Change-Id: Icfb4af890548a2a11d638c59bb0fb54aaa01a2ed
This commit is contained in:
Stephan Bergmann 2014-06-16 10:18:09 +02:00
parent 44cd9a17ca
commit e18c3848d1

View file

@ -157,15 +157,24 @@ public class _XRowSet extends MultiMethodTest {
oObj.removeRowSetListener(listener) ;
checker.moveCursor() ;
result &= !listener.cursorMoved ;
if (listener.cursorMoved) {
log.println("cursorMoved is erroneously set");
result = false;
}
listener.reset() ;
checker.changeRow() ;
result &= !listener.rowChanged ;
if (listener.rowChanged) {
log.println("rowChanged is erroneously set");
result = false;
}
listener.reset() ;
checker.changeRowSet() ;
result &= !listener.rowSetChanged ;
if (listener.rowSetChanged) {
log.println("rowSetChanged is erroneously set");
result = false;
}
tRes.tested("removeRowSetListener()", result) ;
}