Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e67bdc4bb0 |
@@ -28,6 +28,11 @@ public class BlockDecorator<T extends Test> extends AbstractDecorator<T> {
|
||||
method.invoke(getCommand().getObject());
|
||||
return true;
|
||||
} catch (InvocationTargetException e) {
|
||||
Throwable exception = e.getCause();
|
||||
|
||||
if(exception instanceof AssertionError)
|
||||
throw (AssertionError) exception;
|
||||
|
||||
System.err.println(e.getMessage());
|
||||
throw new RuntimeException(e);
|
||||
} catch (IllegalAccessException e) {
|
||||
|
||||
Reference in New Issue
Block a user