use of io.zeebe.client.ZeebeClient in project zeebe by zeebe-io.
the class CreateTaskTest method testValidateTopicNameNotEmpty.
@Test
public void testValidateTopicNameNotEmpty() {
// given
final ZeebeClient client = clientRule.getClient();
// then
exception.expect(RuntimeException.class);
exception.expectMessage("topic must not be empty");
// when
client.tasks().create("", "foo").execute();
}
use of io.zeebe.client.ZeebeClient in project zeebe by zeebe-io.
the class CreateTaskTest method testValidateTopicNameNotNull.
@Test
public void testValidateTopicNameNotNull() {
// given
final ZeebeClient client = clientRule.getClient();
// then
exception.expect(RuntimeException.class);
exception.expectMessage("topic must not be null");
// when
client.tasks().create(null, "foo").execute();
}
use of io.zeebe.client.ZeebeClient in project zeebe by zeebe-io.
the class TopicSubscriptionTest method testValidateTopicNameNotNull.
@Test
public void testValidateTopicNameNotNull() {
// given
final ZeebeClient client = clientRule.getClient();
// then
exception.expect(RuntimeException.class);
exception.expectMessage("topic must not be null");
// when
client.topics().newSubscription(null);
}
use of io.zeebe.client.ZeebeClient in project zeebe by zeebe-io.
the class TopicSubscriptionTest method testValidateTopicNameNotEmpty.
@Test
public void testValidateTopicNameNotEmpty() {
// given
final ZeebeClient client = clientRule.getClient();
// then
exception.expect(RuntimeException.class);
exception.expectMessage("topic must not be empty");
// when
client.topics().newSubscription("");
}
use of io.zeebe.client.ZeebeClient in project zeebe by zeebe-io.
the class BrokerRecoveryTest method shouldNotCreatePreviouslyCreatedTopicAfterRestart.
@Test
public void shouldNotCreatePreviouslyCreatedTopicAfterRestart() {
// given
final ZeebeClient client = clientRule.getClient();
final String topicName = "foo";
client.topics().create(topicName, 2).execute();
restartBroker();
// then
exception.expect(ClientCommandRejectedException.class);
// when
client.topics().create(topicName, 2).execute();
}
Aggregations