use of org.apache.kafka.streams.errors.InvalidStateStoreException in project kafka by apache.
the class StreamThreadStateStoreProviderTest method shouldNotFindWindowStoresAsTimestampedStore.
@Test
public void shouldNotFindWindowStoresAsTimestampedStore() {
mockThread(true);
final InvalidStateStoreException exception = assertThrows(InvalidStateStoreException.class, () -> provider.stores(StoreQueryParameters.fromNameAndType("window-store", QueryableStoreTypes.timestampedWindowStore())));
assertThat(exception.getMessage(), is("Cannot get state store window-store because the queryable store type " + "[class org.apache.kafka.streams.state.QueryableStoreTypes$TimestampedWindowStoreType] " + "does not accept the actual store type " + "[class org.apache.kafka.streams.state.internals.MeteredWindowStore]."));
}
Aggregations