Skip to content

Commit 9646783

Browse files
committed
Update unittest
1 parent ac2afdc commit 9646783

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

java-bigquery/google-cloud-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryDriverTest.java

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,9 @@ public void testJDBCCompliantReturnsFalse() {
9898
}
9999

100100
@Test
101-
public void testConnectWithInvalidUrlChainsException() {
102-
try {
103-
bigQueryDriver.connect(
104-
"jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;InvalidProperty=Value",
105-
new Properties());
106-
fail("Expected SQLException");
107-
} catch (SQLException e) {
108-
assertThat((Throwable) e).isInstanceOf(BigQueryJdbcException.class);
109-
assertThat(e.getCause()).isInstanceOf(BigQueryJdbcRuntimeException.class);
110-
}
101+
public void testConnectWithInvalidUrlChainsNoException() throws SQLException {
102+
bigQueryDriver.connect(
103+
"jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;InvalidProperty=Value",
104+
new Properties());
111105
}
112106
}

0 commit comments

Comments
 (0)