From: James Ahlborn Date: Wed, 17 Mar 2010 14:43:59 +0000 (+0000) Subject: oops, actually test both rows X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4c3396db7efa7ecfed67ad3f4264cc4b7b357a7c;p=jackcess.git oops, actually test both rows git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/newformats@451 f203690c-595d-4dc9-a70b-905162fa7fd2 --- 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 row = table.getNextRow(); + Map row1 = table.getNextRow(); + Map 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 tmpRow = row1; + row1 = row2; + row2 = tmpRow; } + + checkTestDBTable1RowABCDEFG(testDB, table, row1); + checkTestDBTable1RowA(testDB, table, row2); } }