Revision: 3619
Author: [email protected]
Date: Mon Jun 14 11:27:25 2010
Log: Corrected a test in the DBTreeModel as the objects displayed in the tree have changed slightly in the recent past.
http://code.google.com/p/power-architect/source/detail?r=3619

Modified:
 /trunk/regress/ca/sqlpower/architect/swingui/dbtree/TestDBTreeModel.java

=======================================
--- /trunk/regress/ca/sqlpower/architect/swingui/dbtree/TestDBTreeModel.java Mon Jun 14 09:32:50 2010 +++ /trunk/regress/ca/sqlpower/architect/swingui/dbtree/TestDBTreeModel.java Mon Jun 14 11:27:25 2010
@@ -135,15 +135,14 @@

         assertEquals(2, l.getRemoveCount());

- TreePath expectPkPath = new TreePath(new Object[] { treeRoot, db, t, t.getExportedKeysWithoutPopulating(), r }); - TreePath expectFkPath = new TreePath(new Object[] { treeRoot, db, t, t.getImportedKeysWithoutPopulating(), r });
+        Object exportedKeyFolder = tm.getChild(t, 1);
+ TreePath expectPkPath = new TreePath(new Object[] { treeRoot, db, t, exportedKeyFolder, r });

         Set<TreePath> actualPaths = new HashSet<TreePath>();
         for (TreeModelEvent tme : l.getEventLog()) {
             actualPaths.add(tme.getTreePath());
         }

-        assertTrue(actualPaths.contains(expectFkPath));
         assertTrue(actualPaths.contains(expectPkPath));
     }

Reply via email to