Revision: 3202
Author: [email protected]
Date: Mon Dec 14 13:03:43 2009
Log: Cleaned up a broken test. When the inner class in the test was removed
it started to use the table defined in setup which had 6 children to start
and made the test no longer make sense.
http://code.google.com/p/power-architect/source/detail?r=3202
Modified:
/branches/sqlobject-spobject-model/regress/ca/sqlpower/architect/swingui/TestTablePane.java
=======================================
---
/branches/sqlobject-spobject-model/regress/ca/sqlpower/architect/swingui/TestTablePane.java
Tue Dec 1 14:48:38 2009
+++
/branches/sqlobject-spobject-model/regress/ca/sqlpower/architect/swingui/TestTablePane.java
Mon Dec 14 13:03:43 2009
@@ -293,13 +293,14 @@
* any of its folders and those events have to be handled in the right
way.
*/
public void testListenerDoesntCleanUpEarly() throws SQLObjectException {
+ SQLTable t = new SQLTable(session.getTargetDatabase(), true);
SQLColumn c1 = new SQLColumn(t, "PK1", Types.BIT, 1, 0);
t.addColumn(c1, 0);
TablePane tp = new TablePane(t, pp.getContentPane());
assertEquals(1, t.getColumns().size());
-
t.removeColumn(t.getChildrenWithoutPopulating(SQLColumn.class).size());
+ t.removeColumn(t.getChildrenWithoutPopulating(SQLColumn.class).size() -
1);
assertEquals(0, t.getColumns().size());
// now table has selection list size 1, and model's column list
is size 0