@Override public void evaluate() throws Throwable { base.evaluate(); verify(); } };
@Override public Statement apply(Statement statement, final Description description) { Robotic note = description.getAnnotation(Robotic.class); if (note != null) { // decorate with Robotic behavior only if @Robotic annotation is present String packagePath = this.scriptRoot; if (packagePath == null) { Class<?> testClass = description.getTestClass(); String packageName = testClass.getPackage().getName(); packagePath = packageName.replaceAll("\\.", "/"); } // script is a required attribute on @Robotic String scriptName = format("%s/%s", packagePath, note.script()); if (scriptName.endsWith(SCRIPT_EXTENSION)) { scriptName = scriptName.substring(0, scriptName.length() - SCRIPT_EXTENSION.length()); } statement = new RoboticStatement(statement, scriptName, latch); } return super.apply(statement, description); }
return super.apply(statement, description);
@Override public void evaluate() throws Throwable { base.evaluate(); verify(); } };
@Override public void evaluate() throws Throwable { base.evaluate(); verify(); } };
@Override public void evaluate() throws Throwable { base.evaluate(); verify(); } };
@Override public void evaluate() throws Throwable { base.evaluate(); verify(); } };
@Override public void evaluate() throws Throwable { base.evaluate(); verify(); } };
@Override public void evaluate() throws Throwable { base.evaluate(); verify(); } };