summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2010-03-17 13:00:31 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2010-03-17 13:00:31 +0000
commit3f4e6551efaf2c5431dc6dad8a34541ec2aac172 (patch)
tree5a5291f31cea85f47d0015bc299dc11db3055661
parent611b3cd61a3771613449d6082be6c18585e0cc24 (diff)
downloadjackcess-3f4e6551efaf2c5431dc6dad8a34541ec2aac172.tar.gz
jackcess-3f4e6551efaf2c5431dc6dad8a34541ec2aac172.zip
make test row order independent
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/newformats@450 f203690c-595d-4dc9-a70b-905162fa7fd2
-rw-r--r--test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java b/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java
index 67ff2be..837bd2a 100644
--- a/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java
+++ b/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java
@@ -200,12 +200,10 @@ public class DatabaseTest extends TestCase {
final Table table = db.getTable("Table1");
final Map<String, Object> row = table.getNextRow();
- // Row order is arbitrary, so v2007 row order difference is valid
- if (Database.FileFormat.V2007.equals(testDB.getExpectedFileFormat())) {
- checkTestDBTable1RowA(testDB, table, row);
+
+ if("abcdefg".equals(row.get("A"))) {
checkTestDBTable1RowABCDEFG(testDB, table, row);
} else {
- checkTestDBTable1RowABCDEFG(testDB, table, row);
checkTestDBTable1RowA(testDB, table, row);
}
}