summaryrefslogtreecommitdiffstats
path: root/test/src/java/com
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2010-03-17 14:43:59 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2010-03-17 14:43:59 +0000
commit4c3396db7efa7ecfed67ad3f4264cc4b7b357a7c (patch)
tree9ac2cbfe1164ecaaa64872f2713b4795f6141554 /test/src/java/com
parent3f4e6551efaf2c5431dc6dad8a34541ec2aac172 (diff)
downloadjackcess-4c3396db7efa7ecfed67ad3f4264cc4b7b357a7c.tar.gz
jackcess-4c3396db7efa7ecfed67ad3f4264cc4b7b357a7c.zip
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
Diffstat (limited to 'test/src/java/com')
-rw-r--r--test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java14
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);
}
}