I guess you throw ex.getCause because Junit rule expectException expects a 
IOException and this exception is the cause wrapped into the exception you get ?
If so it is not needed. Junit rule suports that. In general try/catch blocks 
should not be needed when using expectException junit rule: you should use:
- expectedException.**expectCause**(**isA**(IOException.class))
- remove the try catch.

[ Full content available at: https://github.com/apache/beam/pull/6146 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to