Search in sources :

Example 1 with ListProperties

use of io.confluent.ksql.parser.tree.ListProperties in project ksql by confluentinc.

the class KsqlParserTest method testShowProperties.

@Test
public void testShowProperties() throws Exception {
    String simpleQuery = "SHOW PROPERTIES;";
    Statement statement = KSQL_PARSER.buildAst(simpleQuery, metaStore).get(0);
    Assert.assertTrue(statement instanceof ListProperties);
    ListProperties listProperties = (ListProperties) statement;
    Assert.assertTrue(listProperties.toString().equalsIgnoreCase("ListProperties{}"));
}
Also used : ListProperties(io.confluent.ksql.parser.tree.ListProperties) Statement(io.confluent.ksql.parser.tree.Statement) Test(org.junit.Test)

Aggregations

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