Revision: 3616
Author: [email protected]
Date: Mon Jun 14 09:11:26 2010
Log: Corrected the test case for checking catalog properties get saved. The test was trying to populate the catalog using a mock data source which was not going to work.
http://code.google.com/p/power-architect/source/detail?r=3616

Modified:
 /trunk/regress/ca/sqlpower/architect/swingui/TestSwingUIProject.java

=======================================
--- /trunk/regress/ca/sqlpower/architect/swingui/TestSwingUIProject.java Mon Apr 19 08:20:49 2010 +++ /trunk/regress/ca/sqlpower/architect/swingui/TestSwingUIProject.java Mon Jun 14 09:11:26 2010
@@ -518,6 +518,7 @@

                SQLCatalog target = new SQLCatalog(db, "my test catalog");
                db.addChild(target);
+               target.setPopulated(true);

                Set<String> propertiesToIgnore = getPropertiesToIgnore();
                propertiesToIgnore.add("parentDatabase");
@@ -550,6 +551,7 @@
                Map<String, Object> newDescription =
ca.sqlpower.testutil.TestUtils.getAllInterestingProperties(target, propertiesToIgnore);

+               assertFalse(newDescription.isEmpty());
                assertMapsEqual(oldDescription, newDescription);
        }

Reply via email to