use of io.confluent.ksql.parser.tree.ListTopics in project ksql by confluentinc.
the class KsqlParserTest method testShowTopics.
@Test
public void testShowTopics() throws Exception {
String simpleQuery = "SHOW TOPICS;";
Statement statement = KSQL_PARSER.buildAst(simpleQuery, metaStore).get(0);
Assert.assertTrue(statement instanceof ListTopics);
ListTopics listTopics = (ListTopics) statement;
Assert.assertTrue(listTopics.toString().equalsIgnoreCase("ListTopics{}"));
}
Aggregations