This commit is contained in:
zyyang 2021-02-23 16:00:16 +08:00
parent 55729a6e53
commit 106f750bbb
1 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ public class TSDBStatementTest {
Assert.assertEquals(0, stmt.getQueryTimeout()); Assert.assertEquals(0, stmt.getQueryTimeout());
} }
@Test @Test(expected = SQLException.class)
public void setQueryTimeout() throws SQLException { public void setQueryTimeout() throws SQLException {
stmt.setQueryTimeout(0); stmt.setQueryTimeout(0);
stmt.setQueryTimeout(-1); stmt.setQueryTimeout(-1);
@ -333,7 +333,7 @@ public class TSDBStatementTest {
stmt.execute("", new int[]{}); stmt.execute("", new int[]{});
} }
@Test @Test(expected = SQLFeatureNotSupportedException.class)
public void testExecute2() throws SQLException { public void testExecute2() throws SQLException {
stmt.execute("", new String[]{}); stmt.execute("", new String[]{});
} }