Author: aadamchik Date: Sun Apr 24 17:06:00 2011 New Revision: 1096347 URL: http://svn.apache.org/viewvc?rev=1096347&view=rev Log: another case of op reordering
Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/FlattenedPrefetchTest.java Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/FlattenedPrefetchTest.java URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/FlattenedPrefetchTest.java?rev=1096347&r1=1096346&r2=1096347&view=diff ============================================================================== --- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/FlattenedPrefetchTest.java (original) +++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/FlattenedPrefetchTest.java Sun Apr 24 17:06:00 2011 @@ -58,10 +58,13 @@ public class FlattenedPrefetchTest exten @Override protected void setUpAfterInjection() throws Exception { - dbHelper.deleteAll("ARTIST"); + dbHelper.deleteAll("PAINTING_INFO"); dbHelper.deleteAll("PAINTING"); - dbHelper.deleteAll("ARTGROUP"); + dbHelper.deleteAll("PAINTING1"); + dbHelper.deleteAll("ARTIST_EXHIBIT"); dbHelper.deleteAll("ARTIST_GROUP"); + dbHelper.deleteAll("ARTIST"); + dbHelper.deleteAll("ARTGROUP"); tArtist = new TableHelper(dbHelper, "ARTIST"); tArtist.setColumns("ARTIST_ID", "ARTIST_NAME"); @@ -81,11 +84,13 @@ public class FlattenedPrefetchTest exten } protected void createPrefetchDataSet1() throws Exception { - tArtgroup.insert(33001, "group1"); - tArtgroup.insert(33002, "group2"); tArtist.insert(33001, "artist1"); tArtist.insert(33002, "artist2"); tArtist.insert(33003, "artist3"); + + tArtgroup.insert(33001, "group1"); + tArtgroup.insert(33002, "group2"); + tArtistGroup.insert(33001, 33001); tArtistGroup.insert(33001, 33002); tArtistGroup.insert(33002, 33002); @@ -93,11 +98,13 @@ public class FlattenedPrefetchTest exten } protected void createPrefetchDataSet2() throws Exception { - tArtgroup.insert(33001, "group1"); - tArtgroup.insert(33002, "group2"); tArtist.insert(33001, "artist1"); tArtist.insert(33002, "artist2"); tArtist.insert(33003, "artist3"); + + tArtgroup.insert(33001, "group1"); + tArtgroup.insert(33002, "group2"); + tArtistGroup.insert(33001, 33001); tArtistGroup.insert(33001, 33002); tArtistGroup.insert(33002, 33002);