Skip to content

Commit 31426ad

Browse files
sammcveetydhalperi
authored andcommitted
Regression test for pull/511 (GoogleCloudPlatform#514)
1 parent 24b403e commit 31426ad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sdk/src/test/java/com/google/cloud/dataflow/sdk/io/BigQueryIOTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1734,6 +1734,13 @@ public void testTagWithUniqueIdsAndTableProjectNotNullWithNvp() {
17341734
assertNotNull(table.getProjectId());
17351735
}
17361736

1737+
@Test
1738+
public void testWriteHandlesNullTable() {
1739+
BigQueryIO.Write.Bound write = BigQueryIO.Write
1740+
.withoutValidation();
1741+
assertNull(write.getTable());
1742+
}
1743+
17371744
private static void testNumFiles(File tempDir, int expectedNumFiles) {
17381745
assertEquals(expectedNumFiles, tempDir.listFiles(new FileFilter() {
17391746
@Override

0 commit comments

Comments
 (0)