use of io.confluent.ksql.query.QueryError.Type in project ksql by confluentinc.
the class MissingTopicClassifierTest method shouldClassifyNoMissingTopicAsUnknownError.
@Test
public void shouldClassifyNoMissingTopicAsUnknownError() {
// Given:
final Exception e = new Exception("foo");
// When:
final Type type = new MissingTopicClassifier("").classify(e);
// Then:
assertThat(type, is(Type.UNKNOWN));
}
use of io.confluent.ksql.query.QueryError.Type in project ksql by confluentinc.
the class MissingTopicClassifierTest method shouldClassifyMissingTopicAsUserError.
@Test
public void shouldClassifyMissingTopicAsUserError() {
// Given:
final Exception e = new MissingSourceTopicException("foo");
// When:
final Type type = new MissingTopicClassifier("").classify(e);
// Then:
assertThat(type, is(Type.USER));
}
Aggregations