verify(ctx).currentProcessingTime(); verify(ctx).currentWatermark(); verify(ctx).windowState(); verify(ctx).globalState();
verify(ctx).currentProcessingTime(); verify(ctx).currentWatermark(); verify(ctx).windowState(); verify(ctx).globalState();
verify(ctx).currentProcessingTime(); verify(ctx).currentWatermark(); verify(ctx).windowState(); verify(ctx).globalState();
@Override public KeyedStateStore windowState() { return internalContext.windowState(); }
@Override public KeyedStateStore windowState() { return internalContext.windowState(); }
@Override public KeyedStateStore windowState() { return internalContext.windowState(); }
@Override public KeyedStateStore windowState() { return internalContext.windowState(); }
@Override public KeyedStateStore windowState() { return internalContext.windowState(); }
@Override public KeyedStateStore windowState() { return internalContext.windowState(); }
@Override public Object answer(InvocationOnMock invocationOnMock) throws Throwable { InternalWindowFunction.InternalWindowContext context = (InternalWindowFunction.InternalWindowContext) invocationOnMock.getArguments()[2]; KeyedStateStore windowKeyedStateStore = context.windowState(); KeyedStateStore globalKeyedStateStore = context.globalState();
@Override public KeyedStateStore windowState() { return internalContext.windowState(); }
@Override public Object answer(InvocationOnMock invocationOnMock) throws Throwable { InternalWindowFunction.InternalWindowContext context = (InternalWindowFunction.InternalWindowContext) invocationOnMock.getArguments()[2]; context.windowState().getState(valueStateDescriptor).update("hello"); return null; } }).when(mockWindowFunction).process(anyInt(), anyTimeWindow(), anyInternalWindowContext(), anyIntIterable(), WindowOperatorContractTest.<Void>anyCollector());
@Override public Object answer(InvocationOnMock invocationOnMock) throws Throwable { InternalWindowFunction.InternalWindowContext context = (InternalWindowFunction.InternalWindowContext) invocationOnMock.getArguments()[2]; context.windowState().getState(valueStateDescriptor).update("hello"); return null; } }).when(mockWindowFunction).process(anyInt(), anyTimeWindow(), anyInternalWindowContext(), anyIntIterable(), WindowOperatorContractTest.<Void>anyCollector());
@Override public KeyedStateStore windowState() { return internalContext.windowState(); }
@Override public Object answer(InvocationOnMock invocationOnMock) throws Throwable { InternalWindowFunction.InternalWindowContext context = (InternalWindowFunction.InternalWindowContext) invocationOnMock.getArguments()[1]; context.windowState().getState(valueStateDescriptor).clear(); return null; } }).when(mockWindowFunction).clear(anyTimeWindow(), anyInternalWindowContext());