Revision 28079 branches/v2_0_0_prep/libraries/libIverUtiles/src-test/com/iver/utiles/TestXMLEntityPersistenceManager.java
TestXMLEntityPersistenceManager.java | ||
---|---|---|
424 | 424 |
while(iterator1.hasNext() && iterator2.hasNext()) { |
425 | 425 |
Object o1 = iterator1.next(); |
426 | 426 |
Object o2 = iterator2.next(); |
427 |
if (!(o1==null ? o2==null : o1.equals(o2))) { |
|
428 |
failNotEquals("Items are not equal", o1, o2); |
|
429 |
} |
|
427 |
assertEquals(o1, o2); |
|
430 | 428 |
} |
431 |
if (iterator1.hasNext() || iterator2.hasNext()) { |
|
432 |
fail("Lists have different length"); |
|
433 |
} |
|
429 |
assertEquals(iterator1.hasNext(), iterator2.hasNext()); |
|
434 | 430 |
} |
435 | 431 |
|
436 | 432 |
public static class MyPersistentList implements Persistent { |
Also available in: Unified diff