[ https://issues.apache.org/jira/browse/BEAM-546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Halperin updated BEAM-546: --------------------------------- Component/s: testing > Aggregator Verifier and Integrate to E2E Test Framework > ------------------------------------------------------- > > Key: BEAM-546 > URL: https://issues.apache.org/jira/browse/BEAM-546 > Project: Beam > Issue Type: Task > Components: testing > Reporter: Mark Liu > Assignee: Mark Liu > Priority: Minor > > Create a matcher to verify the value of > [Aggregator|https://github.com/apache/incubator-beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/Aggregator.java], > which is > [AggregatorValues|https://github.com/apache/incubator-beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/AggregatorValues.java], > by given expected values. > For example: > {code} > MyFnWithAggregator fn = new MyFnWithAggregator(); > Pipeline p = ... (setup the pipeline, use fn) ... > p.run(); > assertThat(pResult, isAggregatorValue(values, fn.aggregator)); > {code} > It also should be integrated in E2E pipeline test and used by setting > onSuccessMatcher. -- This message was sent by Atlassian JIRA (v6.3.4#6332)