diff options
Diffstat (limited to 'test/src/java/com')
-rw-r--r-- | test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java b/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java index 837bd2a..cd87323 100644 --- a/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java +++ b/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java @@ -199,13 +199,17 @@ public class DatabaseTest extends TestCase { assertEquals(4, db.getTableNames().size()); final Table table = db.getTable("Table1"); - final Map<String, Object> row = table.getNextRow(); + Map<String, Object> row1 = table.getNextRow(); + Map<String, Object> row2 = table.getNextRow(); - if("abcdefg".equals(row.get("A"))) { - checkTestDBTable1RowABCDEFG(testDB, table, row); - } else { - checkTestDBTable1RowA(testDB, table, row); + if(!"abcdefg".equals(row1.get("A"))) { + Map<String, Object> tmpRow = row1; + row1 = row2; + row2 = tmpRow; } + + checkTestDBTable1RowABCDEFG(testDB, table, row1); + checkTestDBTable1RowA(testDB, table, row2); } } |