Revision: 4010
Author: [email protected]
Date: Wed Dec  1 10:31:37 2010
Log: This test should be looking for the UDTs under the snapshot collection not under the project directly.
http://code.google.com/p/power-architect/source/detail?r=4010

Modified:
/trunk/regress/ca/sqlpower/architect/SPObjectSnapshotHierarchyListenerTest.java

=======================================
--- /trunk/regress/ca/sqlpower/architect/SPObjectSnapshotHierarchyListenerTest.java Fri Oct 15 12:36:22 2010 +++ /trunk/regress/ca/sqlpower/architect/SPObjectSnapshotHierarchyListenerTest.java Wed Dec 1 10:31:37 2010
@@ -116,8 +116,8 @@
         table.addColumn(col);

assertEquals(1, session.getWorkspace().getSnapshotCollection().getSPObjectSnapshots().size()); - assertEquals(1, session.getWorkspace().getChildren(UserDefinedSQLType.class).size()); - assertTrue(session.getWorkspace().getChildren(UserDefinedSQLType.class).get(0) == + assertEquals(1, session.getWorkspace().getSnapshotCollection().getChildren(UserDefinedSQLType.class).size()); + assertTrue(session.getWorkspace().getSnapshotCollection().getChildren(UserDefinedSQLType.class).get(0) == session.getWorkspace().getSnapshotCollection().getSPObjectSnapshots().get(0).getSPObject());
     }

@@ -134,8 +134,8 @@
         table.addColumn(col);

assertEquals(1, session.getWorkspace().getSnapshotCollection().getSPObjectSnapshots().size()); - assertEquals(1, session.getWorkspace().getChildren(UserDefinedSQLType.class).size()); - UserDefinedSQLType snapshotUDT = session.getWorkspace().getChildren(UserDefinedSQLType.class).get(0); + assertEquals(1, session.getWorkspace().getSnapshotCollection().getChildren(UserDefinedSQLType.class).size()); + UserDefinedSQLType snapshotUDT = session.getWorkspace().getSnapshotCollection().getChildren(UserDefinedSQLType.class).get(0); SPObjectSnapshot<?> snapshot = session.getWorkspace().getSnapshotCollection().getSPObjectSnapshots().get(0);
         assertTrue(snapshotUDT == snapshot.getSPObject());
         assertEquals(systemType1.getUUID(), snapshot.getOriginalUUID());
@@ -144,8 +144,8 @@
         col.getUserDefinedSQLType().setUpstreamType(systemType2);

assertEquals(1, session.getWorkspace().getSnapshotCollection().getSPObjectSnapshots().size()); - assertEquals(1, session.getWorkspace().getChildren(UserDefinedSQLType.class).size()); - snapshotUDT = session.getWorkspace().getChildren(UserDefinedSQLType.class).get(0); + assertEquals(1, session.getWorkspace().getSnapshotCollection().getChildren(UserDefinedSQLType.class).size()); + snapshotUDT = session.getWorkspace().getSnapshotCollection().getChildren(UserDefinedSQLType.class).get(0); snapshot = session.getWorkspace().getSnapshotCollection().getSPObjectSnapshots().get(0);
         assertTrue(snapshotUDT == snapshot.getSPObject());

Reply via email to