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