Class TestKafkaStreamsExtensionOptions

java.lang.Object
org.creekservice.api.kafka.streams.test.TestKafkaStreamsExtensionOptions

public final class TestKafkaStreamsExtensionOptions extends Object
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 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.