Skip to content

Commit

Permalink
fixup! Add display data for MapElements transform
Browse files Browse the repository at this point in the history
  • Loading branch information
swegner committed May 10, 2016
1 parent 3a5bb16 commit 8fe5624
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ public Integer apply(Integer input) {
MapElements<?, ?> map = MapElements.via(mapFn);
DisplayDataEvaluator evaluator = DataflowDisplayDataEvaluator.create();

Set<DisplayData> displayDatas = evaluator.displayDataForPrimitiveTransforms(map);
assertThat(displayDatas, hasItem(hasDisplayItem("mapFn", mapFn.getClass())));
Set<DisplayData> displayData = evaluator.displayDataForPrimitiveTransforms(map);
assertThat("MapElements should include the mapFn in its primitive display data",
displayData, hasItem(hasDisplayItem("mapFn", mapFn.getClass())));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public String apply(String input) {
assertThat(pipeline.getCoderRegistry().getDefaultCoder(output.getTypeDescriptor()),
equalTo(pipeline.getCoderRegistry().getDefaultCoder(new TypeDescriptor<String>() {})));

// Make sure the pipelien runs too
// Make sure the pipeline runs too
pipeline.run();
}

Expand Down

0 comments on commit 8fe5624

Please sign in to comment.