use of io.zeebe.client.event.DeploymentEvent in project zeebe by zeebe-io.
the class DeploymentClusteredTest method shouldDeployAfterRestartBroker.
@Test
public void shouldDeployAfterRestartBroker() {
// given
clusteringRule.createTopic("test", PARTITION_COUNT);
// when
clusteringRule.restartBroker(ClusteringRule.BROKER_3_CLIENT_ADDRESS);
// then
final DeploymentEvent deploymentEvent = client.workflows().deploy("test").addWorkflowModel(WORKFLOW, "workflow.bpmn").execute();
assertThat(deploymentEvent.getDeployedWorkflows().size()).isEqualTo(1);
assertThat(deploymentEvent.getErrorMessage()).isEmpty();
}
Aggregations