diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2010-03-17 13:00:31 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2010-03-17 13:00:31 +0000 |
commit | 3f4e6551efaf2c5431dc6dad8a34541ec2aac172 (patch) | |
tree | 5a5291f31cea85f47d0015bc299dc11db3055661 | |
parent | 611b3cd61a3771613449d6082be6c18585e0cc24 (diff) | |
download | jackcess-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.java | 6 |
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); } } |