Re: Unit Testing onTimer() event function with TestHarness - onTimer() not being called

2023-03-25 Thread David Anderson
1. The timestamp passed to testHarness.processElement should be the timestamp that would have been extracted from the element by the timestamp extractor in your watermark strategy. 2. Your tests should call testHarness.processWatermark and pass in the watermark(s) you want to work with. processBr

Unit Testing onTimer() event function with TestHarness - onTimer() not being called

2023-03-22 Thread Gabriel Angel Amarista Rodrigues
Hello dear Flink team We are rather new to Flink and having problems understanding how unit testing works overall. We want to test the* onTimer()* method after registering a timer in the *processElement()* function. However, the *onTimer() *is never called. We were investigating the documentation