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);
}
Aggregations