use of org.apache.phoenix.schema.TableAlreadyExistsException in project phoenix by apache.
the class TenantSpecificTablesDDLIT method testCreateTenantTableTwice.
@Test
public void testCreateTenantTableTwice() throws Exception {
try {
Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);
Connection conn = DriverManager.getConnection(PHOENIX_JDBC_TENANT_SPECIFIC_URL, props);
conn.createStatement().execute(TENANT_TABLE_DDL);
fail();
} catch (TableAlreadyExistsException expected) {
}
}
Aggregations