use of com.google.cloud.teleport.v2.templates.BigQueryToParquet.ReadSessionFactory in project DataflowTemplates by GoogleCloudPlatform.
the class BigQueryToParquetTest method testReadSessionFactoryBadTable.
/**
* Test {@link ReadSessionFactory} throws exception when invalid table reference is provided.
*/
@Test(expected = IllegalArgumentException.class)
public void testReadSessionFactoryBadTable() {
// Test input
final String badTableRef = "fantasmic-999999;great_data.table";
final TableReadOptions tableReadOptions = TableReadOptions.newBuilder().build();
ReadSessionFactory trsf = new ReadSessionFactory();
ReadSession trs = trsf.create(client, badTableRef, tableReadOptions);
}
Aggregations