Fix the BlockDecorator to throw the AsssertionError, if any.
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

main 0.5.1
KKlochko 2 years ago
parent 9a14ea6486
commit e67bdc4bb0

@ -28,6 +28,11 @@ public class BlockDecorator<T extends Test> extends AbstractDecorator<T> {
method.invoke(getCommand().getObject()); method.invoke(getCommand().getObject());
return true; return true;
} catch (InvocationTargetException e) { } catch (InvocationTargetException e) {
Throwable exception = e.getCause();
if(exception instanceof AssertionError)
throw (AssertionError) exception;
System.err.println(e.getMessage()); System.err.println(e.getMessage());
throw new RuntimeException(e); throw new RuntimeException(e);
} catch (IllegalAccessException e) { } catch (IllegalAccessException e) {

Loading…
Cancel
Save