Revision: 3653
Author: [email protected]
Date: Mon Jun 28 12:33:39 2010
Log: Corrected 3 more tests. The ColumnProfileResult was not setting its parent correctly.
http://code.google.com/p/power-architect/source/detail?r=3653

Modified:
 /trunk/regress/ca/sqlpower/architect/util/ArchitectNewValueMaker.java

=======================================
--- /trunk/regress/ca/sqlpower/architect/util/ArchitectNewValueMaker.java Mon Jun 28 12:01:29 2010 +++ /trunk/regress/ca/sqlpower/architect/util/ArchitectNewValueMaker.java Mon Jun 28 12:33:39 2010
@@ -99,7 +99,7 @@
TableProfileResult tpr = (TableProfileResult) makeNewValue(TableProfileResult.class, null, "");
             ColumnProfileResult cpr = new ColumnProfileResult(
(SQLColumn) makeNewValue(SQLColumn.class, null, ""), tpr);
-            cpr.setParent(tpr);
+            tpr.addColumnProfileResult(cpr);
             return cpr;
         } else if (valueType == ColumnValueCount.class) {
ColumnValueCount cvc = new ColumnValueCount(Integer.MAX_VALUE, 2, 42, false);

Reply via email to