Skip to content

Commit

Permalink
[FLINK-10399] Rely on exception propgation to fail tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
GJL committed Oct 9, 2018
1 parent 959eb7d commit a363146
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ protected void validate(ParameterTool parameter) {
byte[] b = InstantiationUtil.serializeObject(parameter);
final ParameterTool copy = InstantiationUtil.deserializeObject(b, getClass().getClassLoader());
internalValidate(copy);
} catch (Exception e) {
e.printStackTrace();
Assert.fail(e.getMessage());
} catch (IOException | ClassNotFoundException e) {
throw new RuntimeException(e);
}
}

Expand Down Expand Up @@ -82,8 +81,7 @@ private void internalValidate(ParameterTool parameter) {
Assert.assertTrue(defaultProps.containsKey("input"));

} catch (IOException e) {
e.printStackTrace();
Assert.fail(e.getMessage());
throw new RuntimeException(e);
}
}
}

0 comments on commit a363146

Please sign in to comment.