beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Liu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (BEAM-546) Aggregator Verifier and Integrate to E2E Test Framework
Date Fri, 12 Aug 2016 04:47:20 GMT
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)

Mime
View raw message