Update the block to run only a public method.
This commit is contained in:
@@ -24,7 +24,6 @@ public class BlockDecorator<T extends Test> extends AbstractDecorator<T> {
|
|||||||
|
|
||||||
public boolean runMethod() {
|
public boolean runMethod() {
|
||||||
try {
|
try {
|
||||||
method.setAccessible(true);
|
|
||||||
method.invoke(getCommand().getObject());
|
method.invoke(getCommand().getObject());
|
||||||
return true;
|
return true;
|
||||||
} catch (InvocationTargetException e) {
|
} catch (InvocationTargetException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user