Search in sources :

Example 6 with Write

use of org.apache.beam.sdk.io.gcp.spanner.SpannerIO.Write in project beam by apache.

the class SpannerIOWriteTest method emptyTransform.

@Test
public void emptyTransform() throws Exception {
    SpannerIO.Write write = SpannerIO.write();
    thrown.expect(NullPointerException.class);
    thrown.expectMessage("requires instance id to be set with");
    write.expand(null);
}
Also used : Write(org.apache.beam.sdk.io.gcp.spanner.SpannerIO.Write) Test(org.junit.Test)

Aggregations

Write (org.apache.beam.sdk.io.gcp.spanner.SpannerIO.Write)6 Test (org.junit.Test)6 Mutation (com.google.cloud.spanner.Mutation)2 DisplayData (org.apache.beam.sdk.transforms.display.DisplayData)1