File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
main/java/org/apache/beam/sdk/testing
test/java/org/apache/beam/sdk/testing Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ dependencies {
3232 // Needed to resolve TestPipeline's JUnit 4 TestRule type and @Category at compile time,
3333 // but should not leak to consumers at runtime.
3434 provided library. java. junit
35+ permitUnusedDeclared(library. java. junit)
3536
3637 // JUnit 5 API needed to compile the extension; not packaged for consumers of core.
3738 provided library. java. jupiter_api
Original file line number Diff line number Diff line change 2424import java .util .Collection ;
2525import org .apache .beam .sdk .options .ApplicationNameOptions ;
2626import org .apache .beam .sdk .options .PipelineOptions ;
27- import org .apache .beam .vendor .grpc . v1p69p0 .com .google .common .collect .ImmutableList ;
27+ import org .apache .beam .vendor .guava . v32_1_2_jre .com .google .common .collect .ImmutableList ;
2828import org .checkerframework .checker .nullness .qual .Nullable ;
2929import org .junit .jupiter .api .extension .AfterEachCallback ;
3030import org .junit .jupiter .api .extension .BeforeEachCallback ;
Original file line number Diff line number Diff line change 2020import static org .junit .jupiter .api .Assertions .assertNotNull ;
2121import static org .junit .jupiter .api .Assertions .assertTrue ;
2222
23+ import java .io .Serializable ;
2324import org .apache .beam .sdk .options .ApplicationNameOptions ;
2425import org .apache .beam .sdk .transforms .Create ;
2526import org .apache .beam .sdk .transforms .DoFn ;
3132
3233/** Advanced tests for {@link TestPipelineExtension} demonstrating comprehensive functionality. */
3334@ ExtendWith (TestPipelineExtension .class )
34- public class TestPipelineExtensionAdvancedTest {
35+ public class TestPipelineExtensionAdvancedTest implements Serializable {
3536
3637 @ Test
3738 public void testApplicationNameIsSet (TestPipeline pipeline ) {
@@ -72,7 +73,7 @@ public void testWithValidatesRunnerCategory(TestPipeline pipeline) {
7273 @ Test
7374 public void testPipelineInstancesAreIsolated (TestPipeline pipeline1 ) {
7475 // Each test method gets its own pipeline instance
75- assertNotNull ( pipeline1 );
76+ pipeline1 . enableAutoRunIfMissing ( true );
7677 pipeline1 .apply ("Create" , Create .of ("test" ));
7778 // Don't run the pipeline - test should still pass due to auto-run functionality
7879 }
You can’t perform that action at this time.
0 commit comments