Commits

Vineet Reynolds committed f2d822f

Added the SEQUENCE table to the list of tables used by the FilteredDataSet, as the contents of this table were not reset by the test fixtures.

  • Participants
  • Parent commits 99a042e

Comments (0)

Files changed (2)

galleria-ejb/src/test/java/info/galleria/service/ejb/AbstractIntegrationTest.java

 			// between the ALBUMS and PHOTOS tables. The plain XML file does not
 			// contain this information. The DatabaseSequenceFilter class is
 			// avoided as it cannot handle circular dependencies.
-			String[] orderedTableNames = new String[] { "USERS_GROUPS", "USERS", "GROUPS", "ALBUMS", "PHOTOS" };
+			String[] orderedTableNames = new String[] { "SEQUENCE", "USERS_GROUPS", "USERS", "GROUPS", "ALBUMS", "PHOTOS" };
 			IDataSet filteredDataSet = new FilteredDataSet(new SequenceTableFilter(orderedTableNames), dataSet);
 			DatabaseOperation.CLEAN_INSERT.execute(connection, filteredDataSet);
 		}

galleria-ejb/src/test/java/info/galleria/service/jpa/AbstractRepositoryTest.java

 			// between the ALBUMS and PHOTOS tables. The plain XML file does not
 			// contain this information. The DatabaseSequenceFilter class is
 			// avoided as it cannot handle circular dependencies.
-			String[] orderedTableNames = new String[] { "USERS_GROUPS", "USERS", "GROUPS", "ALBUMS", "PHOTOS" };
+			String[] orderedTableNames = new String[] { "SEQUENCE", "USERS_GROUPS", "USERS", "GROUPS", "ALBUMS", "PHOTOS" };
 			IDataSet filteredDataSet = new FilteredDataSet(new SequenceTableFilter(orderedTableNames), dataSet);
 			DatabaseOperation.CLEAN_INSERT.execute(connection, filteredDataSet);
 		}