You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Mark Liu (JIRA)" <ji...@apache.org> on 2016/08/12 04:47:20 UTC
[jira] [Created] (BEAM-546) Aggregator Verifier and Integrate to
E2E Test Framework
Mark Liu created BEAM-546:
-----------------------------
Summary: 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
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)