From 3f4e6551efaf2c5431dc6dad8a34541ec2aac172 Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Wed, 17 Mar 2010 13:00:31 +0000 Subject: [PATCH] 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 --- .../java/com/healthmarketscience/jackcess/DatabaseTest.java | 6 ++---- 1 file 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 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); } } -- 2.39.5