use of io.confluent.ksql.execution.streams.materialization.Materialization in project ksql by confluentinc.
the class QueryBuilderTest method shouldNotIncludeMaterializationProviderIfNoMaterialization.
@Test
public void shouldNotIncludeMaterializationProviderIfNoMaterialization() {
// Given:
when(tableHolder.getMaterializationBuilder()).thenReturn(Optional.empty());
final PersistentQueryMetadata queryMetadata = buildPersistentQuery(SOURCES, KsqlConstants.PersistentQueryType.CREATE_AS, QUERY_ID);
queryMetadata.initialize();
// When:
final Optional<Materialization> result = queryMetadata.getMaterialization(QUERY_ID, stacker);
// Then:
assertThat(result, is(Optional.empty()));
}
Aggregations