File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -1236,9 +1236,9 @@ public void testListDatasetsWithFilter() {
12361236 assertTrue (
12371237 dataset .getLabels ().containsKey ("example-label1" ), "failed to find label key in dataset" );
12381238 assertEquals (
1239- "failed to find label value in dataset" ,
12401239 "example-value1" ,
1241- dataset .getLabels ().get ("example-label1" ));
1240+ dataset .getLabels ().get ("example-label1" ),
1241+ "failed to find label value in dataset" );
12421242 count ++;
12431243 }
12441244 assertTrue (count > 0 );
@@ -1918,12 +1918,9 @@ public void testCreateDatasetWithInvalidAccessPolicyVersion() throws IOException
19181918 .setAcl (ImmutableList .of (acl ))
19191919 .build ();
19201920 DatasetOption datasetOption = DatasetOption .accessPolicyVersion (4 );
1921- Dataset dataset = bigquery .create (info , datasetOption );
1922- assertNotNull (dataset );
1921+ assertThrows (BigQueryException .class , () -> bigquery .create (info , datasetOption ));
19231922
1924- assertThrows (
1925- BigQueryException .class ,
1926- () -> RemoteBigQueryHelper .forceDelete (bigquery , accessPolicyDataset ));
1923+ RemoteBigQueryHelper .forceDelete (bigquery , accessPolicyDataset );
19271924 }
19281925
19291926 @ Test
You can’t perform that action at this time.
0 commit comments