Revision: 3652
Author: [email protected]
Date: Mon Jun 28 12:28:28 2010
Log: Corrected a test case.
http://code.google.com/p/power-architect/source/detail?r=3652
Modified:
/trunk/regress/ca/sqlpower/architect/swingui/TestPlayPenContentPane.java
=======================================
---
/trunk/regress/ca/sqlpower/architect/swingui/TestPlayPenContentPane.java
Mon Jun 14 12:44:23 2010
+++
/trunk/regress/ca/sqlpower/architect/swingui/TestPlayPenContentPane.java
Mon Jun 28 12:28:28 2010
@@ -64,7 +64,9 @@
pp.addTablePane(tp2, new Point(-10,0));
SQLRelationship sqlrel = new SQLRelationship();
sqlrel.attachRelationship(t1, t2, false);
- ppcp = new PlayPenContentPane(new SQLDatabase());
+ final SQLDatabase modelContainer = new SQLDatabase();
+ getRootObject().addChild(modelContainer, 0);
+ ppcp = new PlayPenContentPane(modelContainer);
ppcp.setPlayPen(pp);
rel1 = new Relationship(sqlrel,pp.getContentPane());
rel2 = new Relationship(sqlrel,pp.getContentPane());