* testCreateSchemaCatalog
*/
public void testCreateSchemaCatalog() throws Exception {
Catalog s_catalog = new TPCEProjectBuilder().getSchemaCatalog(false);
assertNotNull(s_catalog);
Database s_catalog_db = CatalogUtil.getDatabase(s_catalog);
assertNotNull(catalog_db);
// ADDRESS should point to ZIP_CODE
Table address = s_catalog_db.getTables().get(TPCEConstants.TABLENAME_ADDRESS);
assertNotNull(address);
Table zipcode = s_catalog_db.getTables().get(TPCEConstants.TABLENAME_ZIP_CODE);
assertNotNull(zipcode);
for (Constraint catalog_const : address.getConstraints()) {
if (catalog_const.getType() == ConstraintType.FOREIGN_KEY.getValue()) {
assertEquals(zipcode, catalog_const.getForeignkeytable());