
fitnesse.slim.LibraryMethodExecutor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fitnesse Show documentation
Show all versions of fitnesse Show documentation
The fully integrated standalone wiki, and acceptance testing framework.
The newest version!
package fitnesse.slim;
import java.util.List;
public class LibraryMethodExecutor extends MethodExecutor {
public LibraryMethodExecutor(SlimExecutionContext context) {
super(context);
}
@Override
public MethodExecutionResult execute(String instanceName, String methodName, Object[] args)
throws Throwable {
List libraries = context.getLibraries();
for (int i = (libraries.size() - 1); i >= 0; i--) {
MethodExecutionResult result = findAndInvoke(methodName, args, libraries.get(i).instance);
if (result.hasResult()) {
return result;
}
}
return MethodExecutionResult.NO_METHOD_IN_LIBRARIES;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy