Package io.camunda.zeebe.qa.util.junit
Annotation Interface ZeebeIntegration
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Inherited
@ExtendWith(io.camunda.zeebe.qa.util.junit.ZeebeIntegrationExtension.class)
public @interface ZeebeIntegration
Registers the
ZeebeIntegrationExtension extension, which will manage the lifecycle of TestCluster or TestApplication instances.
invalid input: '{@code
@ManageTestZeebe
final class MyClusteredTest {
@TestZeebe(autoStart = true, awaitCompleteTopology = true)
private TestCluster cluster = TestCluster.builder()
.withBrokersCount(3)
.withReplicationFactor(3)
.withPartitionsCount(1)
.useEmbeddedGateway(true)
.build();
@Test
void shouldConnectToCluster() {
// given
final Topology topology;
// when
try (final ZeebeClient client = cluster.newClientBuilder().build()) {
topology = c.newTopologyRequest().send().join();
}
// then
assertThat(topology.getClusterSize()).isEqualTo(3);
}
}</pre>'-
Nested Class Summary
Nested Classes