Search in sources :

Example 1 with PostTopicsNode

use of io.confluent.ksql.test.model.PostConditionsNode.PostTopicsNode in project ksql by confluentinc.

the class PostConditionsNodeTest method shouldRoundTrip.

@Test
public void shouldRoundTrip() {
    // Given:
    final PostTopicsNode topics = new PostTopicsNode(Optional.of(".*repartition"), Optional.of(ImmutableList.of(new PostTopicNode("t1", KEY_FORMAT, VALUE_FORMAT, PARTITION_COUNT, JsonNodeFactory.instance.textNode("a"), JsonNodeFactory.instance.textNode("b")))));
    final PostConditionsNode postConditions = new PostConditionsNode(ImmutableList.of(SourceNodeTest.INSTANCE), Optional.of(topics));
    // Then:
    ModelTester.assertRoundTrip(postConditions);
}
Also used : PostTopicNode(io.confluent.ksql.test.model.PostConditionsNode.PostTopicNode) PostTopicsNode(io.confluent.ksql.test.model.PostConditionsNode.PostTopicsNode) Test(org.junit.Test)

Aggregations

PostTopicNode (io.confluent.ksql.test.model.PostConditionsNode.PostTopicNode)1 PostTopicsNode (io.confluent.ksql.test.model.PostConditionsNode.PostTopicsNode)1 Test (org.junit.Test)1