Search in sources :

Example 11 with DdlCommandResult

use of io.confluent.ksql.execution.ddl.commands.DdlCommandResult in project ksql by confluentinc.

the class DdlCommandExecTest method shouldDropMissingType.

@Test
public void shouldDropMissingType() {
    // Given:
    metaStore.deleteType("type");
    // When:
    final DdlCommandResult result = cmdExec.execute(SQL_TEXT, dropType, false, NO_QUERY_SOURCES);
    // Then:
    assertThat("Expected successful execution", result.isSuccess());
    assertThat(result.getMessage(), is("Type 'type' does not exist"));
}
Also used : DdlCommandResult(io.confluent.ksql.execution.ddl.commands.DdlCommandResult) Test(org.junit.Test)

Aggregations

DdlCommandResult (io.confluent.ksql.execution.ddl.commands.DdlCommandResult)11 Test (org.junit.Test)11 AlterSourceCommand (io.confluent.ksql.execution.ddl.commands.AlterSourceCommand)2 CreateStreamCommand (io.confluent.ksql.execution.ddl.commands.CreateStreamCommand)1 DropSourceCommand (io.confluent.ksql.execution.ddl.commands.DropSourceCommand)1