Skip to content
This repository was archived by the owner on Nov 11, 2022. It is now read-only.

Regression test for pull/511 #514

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1734,6 +1734,13 @@ public void testTagWithUniqueIdsAndTableProjectNotNullWithNvp() {
assertNotNull(table.getProjectId());
}

@Test
public void testWriteHandlesNullTable() {
BigQueryIO.Write.Bound write = BigQueryIO.Write
.withoutValidation();
assertNull(write.getTable());
}

private static void testNumFiles(File tempDir, int expectedNumFiles) {
assertEquals(expectedNumFiles, tempDir.listFiles(new FileFilter() {
@Override
Expand Down