@@ -0,0 +1,1468 @@
+package org.apache.beam.runners.spark.structuredstreaming.translation.batch;%0A%0Aimport java.io.Serializable;%0Aimport org.apache.beam.runners.spark.structuredstreaming.SparkPipelineOptions;%0Aimport org.apache.beam.runners.spark.structuredstreaming.SparkRunner;%0Aimport org.apache.beam.sdk.Pipeline;%0Aimport org.apache.beam.sdk.options.PipelineOptions;%0Aimport org.apache.beam.sdk.options.PipelineOptionsFactory;%0Aimport org.apache.beam.sdk.transforms.Create;%0Aimport org.apache.beam.sdk.transforms.DoFn;%0Aimport org.apache.beam.sdk.transforms.ParDo;%0Aimport org.apache.beam.sdk.values.PCollection;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.junit.runners.JUnit4;%0A/**%0A * Test class for beam to spark %7B@link ParDo%7D translation.%0A */%0A@RunWith(JUnit4.class)%0Apublic class ParDoTest implements Serializable %7B%0A  private static Pipeline pipeline;%0A%0A  @BeforeClass%0A  public static void beforeClass()%7B%0A    PipelineOptions options = PipelineOptionsFactory.create().as(SparkPipelineOptions.class);%0A    options.setRunner(SparkRunner.class);%0A    pipeline = Pipeline.create(options);%0A  %7D%0A%0A  @Test%0A  public void testPardo()%7B%0A    PCollection%3CInteger%3E input = pipeline.apply(Create.of(1, 2, 3, 4, 5, 6, 7, 8, 9, 10));%0A    input.apply(ParDo.of(new DoFn%3CInteger, Integer%3E() %7B%0A      @ProcessElement%0A      public void processElement (ProcessContext context)%7B%0A        context.output(context.element() + 1);%0A      %7D%0A    %7D));%0A    pipeline.run();%0A  %7D%0A%0A%7D%0A

Add ParDoTest