Class PipelineTestContext
java.lang.Object
co.decodable.sdk.pipeline.testing.PipelineTestContext
- All Implemented Interfaces:
AutoCloseable
Provides access to Decodable streams during testing as well as the ability to run custom Flink
jobs.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
AConsumer
variant which allows for declared checked exception types. -
Constructor Summary
ConstructorDescriptionPipelineTestContext
(TestEnvironment testEnvironment) Creates a new testing context, using the givenTestEnvironment
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
runJobAsync
(PipelineTestContext.ThrowingConsumer<String[]> jobMainMethod, String... args) Asynchronously executes the given Flink job main method.Returns a stream for the given name.
-
Constructor Details
-
PipelineTestContext
Creates a new testing context, using the givenTestEnvironment
.
-
-
Method Details
-
stream
Returns a stream for the given name. -
runJobAsync
public void runJobAsync(PipelineTestContext.ThrowingConsumer<String[]> jobMainMethod, String... args) throws Exception Asynchronously executes the given Flink job main method.- Throws:
Exception
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-