Package io.quarkus.test.kafka
Class KafkaCompanionResource
- java.lang.Object
-
- io.quarkus.test.kafka.KafkaCompanionResource
-
- All Implemented Interfaces:
DevServicesContext.ContextAware,QuarkusTestResourceLifecycleManager
- Direct Known Subclasses:
ProxiedKafkaCompanionResource
public class KafkaCompanionResource extends Object implements QuarkusTestResourceLifecycleManager, DevServicesContext.ContextAware
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.quarkus.test.common.QuarkusTestResourceLifecycleManager
QuarkusTestResourceLifecycleManager.Context, QuarkusTestResourceLifecycleManager.TestInjector
-
-
Field Summary
Fields Modifier and Type Field Description protected io.strimzi.test.container.StrimziKafkaContainerkafkastatic StringKAFKA_PORT_KEYprotected io.smallrye.reactive.messaging.kafka.companion.KafkaCompanionkafkaCompanionprotected IntegerkafkaPortprotected booleankraftstatic StringKRAFT_KEYstatic StringSTRIMZI_KAFKA_IMAGE_KEYprotected StringstrimziKafkaContainerImage
-
Constructor Summary
Constructors Constructor Description KafkaCompanionResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.strimzi.test.container.StrimziKafkaContainercreateContainer(String imageName)voidinit(Map<String,String> initArgs)voidinject(QuarkusTestResourceLifecycleManager.TestInjector testInjector)voidsetIntegrationTestContext(DevServicesContext context)Map<String,String>start()voidstop()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.test.common.QuarkusTestResourceLifecycleManager
inject, order, setContext
-
-
-
-
Field Detail
-
STRIMZI_KAFKA_IMAGE_KEY
public static String STRIMZI_KAFKA_IMAGE_KEY
-
KAFKA_PORT_KEY
public static String KAFKA_PORT_KEY
-
KRAFT_KEY
public static String KRAFT_KEY
-
strimziKafkaContainerImage
protected String strimziKafkaContainerImage
-
kafkaPort
protected Integer kafkaPort
-
kraft
protected boolean kraft
-
kafka
protected io.strimzi.test.container.StrimziKafkaContainer kafka
-
kafkaCompanion
protected io.smallrye.reactive.messaging.kafka.companion.KafkaCompanion kafkaCompanion
-
-
Method Detail
-
setIntegrationTestContext
public void setIntegrationTestContext(DevServicesContext context)
- Specified by:
setIntegrationTestContextin interfaceDevServicesContext.ContextAware
-
createContainer
protected io.strimzi.test.container.StrimziKafkaContainer createContainer(String imageName)
-
init
public void init(Map<String,String> initArgs)
- Specified by:
initin interfaceQuarkusTestResourceLifecycleManager
-
start
public Map<String,String> start()
- Specified by:
startin interfaceQuarkusTestResourceLifecycleManager
-
stop
public void stop()
- Specified by:
stopin interfaceQuarkusTestResourceLifecycleManager
-
inject
public void inject(QuarkusTestResourceLifecycleManager.TestInjector testInjector)
- Specified by:
injectin interfaceQuarkusTestResourceLifecycleManager
-
-