Search in sources :

Example 1 with CrashingRunner

use of org.apache.beam.sdk.testing.CrashingRunner in project beam by apache.

the class PipelineRunnerTest method testInstantiation.

@Test
public void testInstantiation() {
    PipelineOptions options = PipelineOptionsFactory.create();
    options.setRunner(CrashingRunner.class);
    PipelineRunner<?> runner = PipelineRunner.fromOptions(options);
    assertTrue(runner instanceof CrashingRunner);
}
Also used : PipelineOptions(org.apache.beam.sdk.options.PipelineOptions) CrashingRunner(org.apache.beam.sdk.testing.CrashingRunner) Test(org.junit.Test)

Aggregations

PipelineOptions (org.apache.beam.sdk.options.PipelineOptions)1 CrashingRunner (org.apache.beam.sdk.testing.CrashingRunner)1 Test (org.junit.Test)1