Search in sources :

Example 1 with ListTopics

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{}"));
}
Also used : ListTopics(io.confluent.ksql.parser.tree.ListTopics) Statement(io.confluent.ksql.parser.tree.Statement) Test(org.junit.Test)

Aggregations

ListTopics (io.confluent.ksql.parser.tree.ListTopics)1 Statement (io.confluent.ksql.parser.tree.Statement)1 Test (org.junit.Test)1