apache/beam

Add TriggerTester methods to check that timers are set

Aberta

#18.084 aberto em 3 de jun. de 2022

 (0 comentário) (0 reação) (0 responsável)Java (4.097 forks)batch import
P3bugcoregood first issuerunnerstests

Métricas do repositório

Stars
 (7.313 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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.

Guia do colaborador