use of org.apache.beam.sdk.transforms.reflect.DoFnSignaturesTestUtils.AnonymousMethod in project beam by apache.
the class DoFnSignaturesProcessElementTest method testBadReturnType.
@Test
public void testBadReturnType() throws Exception {
thrown.expect(IllegalArgumentException.class);
thrown.expectMessage("Must return void");
analyzeProcessElementMethod(new AnonymousMethod() {
private int method(DoFn<Integer, String>.ProcessContext<Integer, String> context) {
return 0;
}
});
}
Aggregations