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