use of org.obeonetwork.dsl.database.compare.tests.gen.main.Generate in project InformationSystem by ObeoNetwork.
the class AbstractDatabaseCompareTest method testDatabaseCompare.
public void testDatabaseCompare(String folder) {
TableContainer tableContainer1 = (TableContainer) loadRootObject(folder, INPUT_DATABASE_1, TableContainer.class);
TableContainer tableContainer2 = (TableContainer) loadRootObject(folder, INPUT_DATABASE_2, TableContainer.class);
// Comparison expectedSnapshot = (Comparison)loadRootObject(folder, EXPECTED_COMPARISON, Comparison.class);
Comparison actualSnapshot = null;
try {
actualSnapshot = DatabaseCompareService.compare(tableContainer1, tableContainer2);
} catch (Exception e) {
Assert.fail("Exception during comparison : " + e.getMessage());
}
try {
Generate generate = new Generate(actualSnapshot, new File("models/" + folder), new ArrayList<Object>());
generate.doGenerate(new BasicMonitor());
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
Aggregations