change
This commit is contained in:
parent
8b2e3c8251
commit
e21088d57d
|
@ -115,6 +115,7 @@ public class TSDBDriverTest {
|
||||||
assertNotNull("failure - connection should not be null", conn);
|
assertNotNull("failure - connection should not be null", conn);
|
||||||
}
|
}
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
|
e.printStackTrace();
|
||||||
if (!isTaosdActived)
|
if (!isTaosdActived)
|
||||||
assertEquals("failure - should throw SQLException", "TDengine Error: Unable to establish connection", e.getMessage());
|
assertEquals("failure - should throw SQLException", "TDengine Error: Unable to establish connection", e.getMessage());
|
||||||
else
|
else
|
||||||
|
@ -135,11 +136,13 @@ public class TSDBDriverTest {
|
||||||
assertNotNull("failure - connection should not be null", conn);
|
assertNotNull("failure - connection should not be null", conn);
|
||||||
}
|
}
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
if (!isTaosdActived)
|
|
||||||
assertEquals("failure - should throw SQLException", "TDengine Error: Unable to establish connection", e.getMessage());
|
|
||||||
else
|
|
||||||
fail("failure - should not throw Exception");
|
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
if (!isTaosdActived) {
|
||||||
|
assertEquals("failure - should throw SQLException", "TDengine Error: Unable to establish connection", e.getMessage());
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
fail("failure - should not throw Exception");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -157,6 +160,7 @@ public class TSDBDriverTest {
|
||||||
assertNotNull("failure - connection should not be null", conn);
|
assertNotNull("failure - connection should not be null", conn);
|
||||||
}
|
}
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
|
e.printStackTrace();
|
||||||
if (!isTaosdActived)
|
if (!isTaosdActived)
|
||||||
assertEquals("failure - should throw SQLException", "TDengine Error: Unable to establish connection", e.getMessage());
|
assertEquals("failure - should throw SQLException", "TDengine Error: Unable to establish connection", e.getMessage());
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue