use of org.apache.beam.examples.cookbook.FilterExamples.FilterSingleMonthDataFn in project beam by apache.
the class FilterExamplesTest method testFilterSingleMonthDataFn.
@Test
public void testFilterSingleMonthDataFn() throws Exception {
DoFnTester<TableRow, TableRow> filterSingleMonthDataFn = DoFnTester.of(new FilterSingleMonthDataFn(7));
List<TableRow> results = filterSingleMonthDataFn.processBundle(PROJROWS_ARRAY);
Assert.assertThat(results, CoreMatchers.hasItem(outRow2));
}
Aggregations