Module creek.kafka.streams.test
Class TestKafkaStreamsExtensionOptions
java.lang.Object
org.creekservice.api.kafka.streams.test.TestKafkaStreamsExtensionOptions
Kafka streams extension options builder for test code.
Configures the streams' extension with a minimum set of config to allow tests to run
Example usage:
class TopologyTest {
private static CreekContext ctx;
@BeforeAll
public static void classSetup() {
ctx = CreekServices.builder(new TestServiceDescriptor())
.with(TestKafkaStreamsExtensionOptions.defaults())
.build();
}
}
-
Method Summary
-
Method Details
-
builder
public static org.creekservice.api.kafka.streams.extension.KafkaStreamsExtensionOptions.Builder builder()- Returns:
- options builder with base set of test config, allowing for additional customisation.
-
defaults
public static org.creekservice.api.kafka.streams.extension.KafkaStreamsExtensionOptions defaults()- Returns:
- options with base set of test config.
-