|
|
|
@ -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) {
|
|
|
|
|