use of org.apache.drill.exec.client.InvalidConnectionInfoException in project drill by axbaretto.
the class JdbcConnectTriesTestEmbeddedBits method testDirectConnectionInvalidConnectTries.
@Test
public void testDirectConnectionInvalidConnectTries() throws SQLException {
Connection connection = null;
try {
connection = testDrillDriver.connect("jdbc:drill:drillbit=127.0.0.1:5000,127.0.0.1:5001;tries=abc", getDefaultProperties());
fail();
} catch (SQLException ex) {
assertNull(connection);
assertTrue(ex.getCause() instanceof InvalidConnectionInfoException);
}
}
use of org.apache.drill.exec.client.InvalidConnectionInfoException in project drill by apache.
the class JdbcConnectTriesTestEmbeddedBits method testDirectConnectionInvalidConnectTries.
@Test
public void testDirectConnectionInvalidConnectTries() throws SQLException {
Connection connection = null;
try {
connection = testDrillDriver.connect("jdbc:drill:drillbit=127.0.0.1:5000,127.0.0.1:5001;tries=abc", getDefaultProperties());
fail();
} catch (SQLException ex) {
assertNull(connection);
assertTrue(ex.getCause() instanceof InvalidConnectionInfoException);
}
}
use of org.apache.drill.exec.client.InvalidConnectionInfoException in project drill by apache.
the class JdbcConnectTriesTestEmbeddedBits method testZKConnectionInvalidConnectTries.
@Test
public void testZKConnectionInvalidConnectTries() throws SQLException {
Connection connection = null;
try {
connection = testDrillDriver.connect("jdbc:drill:zk=local;tries=abc", getDefaultProperties());
fail();
} catch (SQLException ex) {
assertNull(connection);
assertTrue(ex.getCause() instanceof InvalidConnectionInfoException);
}
}
use of org.apache.drill.exec.client.InvalidConnectionInfoException in project drill by axbaretto.
the class JdbcConnectTriesTestEmbeddedBits method testZKConnectionInvalidConnectTries.
@Test
public void testZKConnectionInvalidConnectTries() throws SQLException {
Connection connection = null;
try {
connection = testDrillDriver.connect("jdbc:drill:zk=local;tries=abc", getDefaultProperties());
fail();
} catch (SQLException ex) {
assertNull(connection);
assertTrue(ex.getCause() instanceof InvalidConnectionInfoException);
}
}
Aggregations