You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/03 16:11:08 UTC

[GitHub] [beam] kennknowles opened a new issue, #18039: Aggregator Verifier and Integrate to E2E Test Framework

kennknowles opened a new issue, #18039:
URL: https://github.com/apache/beam/issues/18039

   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:
   ```
   
   MyFnWithAggregator fn = new MyFnWithAggregator();
   Pipeline p = ... (setup the pipeline, use fn) ...
   p.run();
   assertThat(pResult,
   isAggregatorValue(values, fn.aggregator));
   
   ```
   
   
   It also should be integrated in E2E pipeline test and used by setting onSuccessMatcher.
   
   Imported from Jira [BEAM-546](https://issues.apache.org/jira/browse/BEAM-546). Original Jira may contain additional context.
   Reported by: markflyhigh.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org