apache/beam

Add TriggerTester methods to check that timers are set

開放

#18,084 建立於 2022年6月3日

 (0 則留言) (0 個反應) (0 位負責人)Java (4,097 個分叉)batch import
P3bugcoregood first issuerunnerstests

倉庫指標

星標
 (7,313 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

TriggerTester exposes a fireIfShouldFire(BoundedWIndow) method. This is used to prompt a call to the trigger with the current state of the trigger tester (Input Watermarks, elements present, etc), and see if the trigger should fire. This is sufficient to test shouldFire of the TriggerStateMachine under test, but does not test that the onElement method sets an appropriate timer to cause such an interrogation to occur.

Imported from Jira BEAM-694. Original Jira may contain additional context. Reported by: jkff.

貢獻者指南