@@ -676,7 +676,7 @@ public void testListPartitions() throws InterruptedException {
676676 List <String > partitions = bigquery .listPartitions (TableId .of (DATASET , tableName ));
677677 assertEquals (1 , partitions .size ());
678678 } finally {
679- bigquery .delete (DATASET , tableName );
679+ bigquery .delete (tableId );
680680 }
681681 }
682682
@@ -806,7 +806,7 @@ public void testUpdateNonExistingTable() {
806806
807807 @ Test
808808 public void testDeleteNonExistingTable () {
809- assertFalse (bigquery .delete (DATASET , "test_delete_non_existing_table" ));
809+ assertFalse (bigquery .delete ("test_delete_non_existing_table" ));
810810 }
811811
812812 @ Test
@@ -1280,7 +1280,7 @@ public void testCreateAndGetJob() throws InterruptedException, TimeoutException
12801280
12811281 assertNotNull (completedJob );
12821282 assertNull (completedJob .getStatus ().getError ());
1283- assertTrue (bigquery .delete (DATASET , destinationTableName ));
1283+ assertTrue (bigquery .delete (destinationTable ));
12841284 }
12851285
12861286 @ Test
@@ -1330,7 +1330,7 @@ public void testCreateAndGetJobWithSelectedFields()
13301330 RetryOption .totalTimeout (Duration .ofMinutes (1 )));
13311331 assertNotNull (completedJob );
13321332 assertNull (completedJob .getStatus ().getError ());
1333- assertTrue (bigquery .delete (DATASET , destinationTableName ));
1333+ assertTrue (bigquery .delete (destinationTable ));
13341334 }
13351335
13361336 @ Test
@@ -1388,7 +1388,7 @@ public void testQueryJob() throws InterruptedException, TimeoutException {
13881388 rowCount ++;
13891389 }
13901390 assertEquals (2 , rowCount );
1391- assertTrue (bigquery .delete (DATASET , tableName ));
1391+ assertTrue (bigquery .delete (destinationTable ));
13921392 Job queryJob = bigquery .getJob (remoteJob .getJobId ());
13931393 JobStatistics .QueryStatistics statistics = queryJob .getStatistics ();
13941394 assertNotNull (statistics .getQueryPlan ());
@@ -1435,7 +1435,7 @@ public void testExtractJob() throws InterruptedException, TimeoutException {
14351435 new String (storage .readAllBytes (BUCKET , EXTRACT_FILE ), StandardCharsets .UTF_8 );
14361436 assertEquals (
14371437 Sets .newHashSet (CSV_CONTENT .split ("\n " )), Sets .newHashSet (extractedCsv .split ("\n " )));
1438- assertTrue (bigquery .delete (DATASET , tableName ));
1438+ assertTrue (bigquery .delete (destinationTable ));
14391439 }
14401440
14411441 @ Test
@@ -1532,7 +1532,7 @@ public void testInsertFromFile() throws InterruptedException, IOException, Timeo
15321532 rowCount ++;
15331533 }
15341534 assertEquals (2 , rowCount );
1535- assertTrue (bigquery .delete (DATASET , destinationTableName ));
1535+ assertTrue (bigquery .delete (tableId ));
15361536 }
15371537
15381538 @ Test
0 commit comments