use of org.apache.kafka.streams.processor.StateStoreContext in project kafka by apache.
the class KeyValueStoreFacadeTest method shouldForwardInit.
@Test
public void shouldForwardInit() {
final StateStoreContext context = mock(StateStoreContext.class);
final StateStore store = mock(StateStore.class);
keyValueStoreFacade.init(context, store);
verify(mockedKeyValueTimestampStore).init(context, store);
}
use of org.apache.kafka.streams.processor.StateStoreContext in project kafka by apache.
the class WindowStoreFacadeTest method shouldForwardInit.
@Test
public void shouldForwardInit() {
final StateStoreContext context = mock(StateStoreContext.class);
final StateStore store = mock(StateStore.class);
windowStoreFacade.init(context, store);
verify(mockedWindowTimestampStore).init(context, store);
}
use of org.apache.kafka.streams.processor.StateStoreContext in project kafka by apache.
the class InMemoryKeyValueStoreTest method createStringKeyValueStore.
@Before
public void createStringKeyValueStore() {
super.before();
final StateStoreContext byteStoreContext = byteStoreDriver.context();
final StoreBuilder<KeyValueStore<Bytes, byte[]>> storeBuilder = Stores.keyValueStoreBuilder(Stores.inMemoryKeyValueStore("in-memory-byte-store"), new Serdes.BytesSerde(), new Serdes.ByteArraySerde());
byteStore = storeBuilder.build();
byteStore.init(byteStoreContext, byteStore);
this.inMemoryKeyValueStore = getInMemoryStore();
}
Aggregations