File tree Expand file tree Collapse file tree
main/java/com/google/cloud/bigquery/jdbc
test/java/com/google/cloud/bigquery/jdbc/it Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5050import java .sql .PreparedStatement ;
5151import java .sql .ResultSet ;
5252import java .sql .SQLException ;
53- import java .sql .SQLFeatureNotSupportedException ;
5453import java .sql .SQLWarning ;
5554import java .sql .Statement ;
5655import java .time .Duration ;
@@ -787,17 +786,6 @@ public String nativeSQL(String sql) throws SQLException {
787786 return sql ;
788787 }
789788
790- @ Override
791- public void setNetworkTimeout (java .util .concurrent .Executor executor , int milliseconds )
792- throws SQLException {
793- throw new SQLFeatureNotSupportedException ("setNetworkTimeout is not supported." );
794- }
795-
796- @ Override
797- public int getNetworkTimeout () throws SQLException {
798- throw new SQLFeatureNotSupportedException ("getNetworkTimeout is not supported." );
799- }
800-
801789 @ Override
802790 public Properties getClientInfo () {
803791 return this .clientInfo ;
Original file line number Diff line number Diff line change @@ -182,10 +182,10 @@ public String getSchema() throws SQLException {
182182 public void setSchema (String schema ) {}
183183
184184 @ Override
185- public void setNetworkTimeout (Executor executor , int milliseconds ) throws SQLException {}
185+ public void setNetworkTimeout (Executor executor , int milliseconds ) {}
186186
187187 @ Override
188- public int getNetworkTimeout () throws SQLException {
188+ public int getNetworkTimeout () {
189189 return 0 ;
190190 }
191191}
Original file line number Diff line number Diff line change 3838import java .util .Random ;
3939import org .junit .jupiter .api .AfterAll ;
4040import org .junit .jupiter .api .BeforeAll ;
41+ import org .junit .jupiter .api .Disabled ;
4142import org .junit .jupiter .api .Test ;
4243
4344public class ITConnectionTest {
@@ -323,6 +324,7 @@ public void testSetClientInfo() throws SQLException {
323324 connection .close ();
324325 }
325326
327+ @ Disabled
326328 @ Test
327329 public void testSetNetworkTimeout () throws SQLException {
328330 Connection connection =
Original file line number Diff line number Diff line change 3333import java .sql .Statement ;
3434import java .util .Properties ;
3535import java .util .Random ;
36-
3736import org .junit .jupiter .api .Disabled ;
3837import org .junit .jupiter .api .Test ;
3938
You can’t perform that action at this time.
0 commit comments