apache/beam

Add TriggerTester methods to check that timers are set

Open

#18.084 aperta il 3 giu 2022

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Java (4097 fork)batch import
P3bugcoregood first issuerunnerstests

Metriche repository

Star
 (7313 star)
Metriche merge PR
 (Merge medio 6g) (243 PR mergiate in 30 g)

Descrizione

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.

Guida contributor