Class TestEnvironment
java.lang.Object
co.decodable.sdk.pipeline.testing.TestEnvironment
- All Implemented Interfaces:
EnvironmentAccess.Environment
An
EnvironmentAccess.Environment
implementation for testing purposes, allowing to define one or more
Decodable streams which then can be accessed from the job under test.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder for creating newTestEnvironment
instances. -
Method Summary
Modifier and TypeMethodDescriptionReturns the Kafka bootstrap server(s) configured for this environment.static TestEnvironment.Builder
builder()
Returns a builder for creating a newTestEnvironment
.Returns the current environment variables, keyed by name.Returns the name of the Kafka topic backing the given stream.
-
Method Details
-
builder
Returns a builder for creating a newTestEnvironment
. -
getEnvironmentConfiguration
Returns the current environment variables, keyed by name.- Specified by:
getEnvironmentConfiguration
in interfaceEnvironmentAccess.Environment
-
topicFor
Returns the name of the Kafka topic backing the given stream. -
bootstrapServers
Returns the Kafka bootstrap server(s) configured for this environment.
-