use of org.obeonetwork.dsl.database.DataBase in project InformationSystem by ObeoNetwork.
the class TestReverse method testPostgres.
@Test
public void testPostgres() {
DataSource dataSource = new DataSource("postgres", "public");
dataSource.setJdbcUrl("jdbc:postgresql://localhost:5432/postgres");
dataSource.setJdbcUsername("postgres");
dataSource.setJdbcPassword("admin");
dataSource.setVendor("Postgres-9");
DataBase database = DatabaseReverser.reverse(dataSource, new MultiDataBaseQueries(), null);
DataBase databaseRef = loadModel("resources/postgres/outputRef.database", "pathmap://NativeDBTypes/Postgres-9");
checkEquality(database, databaseRef);
}
Aggregations