[
https://issues.apache.org/jira/browse/BEAM-546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17545981#comment-17545981
]
Danny McCormick edited comment on BEAM-546 at 6/3/22 3:24 PM:
--------------------------------------------------------------
This issue has been migrated to [https://github.com/apache/beam/issues/17887]
was (Author: JIRAUSER282469):
This isn't actually real, but this issue has been migrated to
https://github.com/apache/beam/issues/17887
> 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
> Priority: P3
>
> 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
(v8.20.7#820007)