return method(camel(methodCell.text()), args);
}
protected Method method(String test, int args) throws NoSuchMethodException {
if (actor == null)
throw new FitFailureException("You must start a fixture using the 'start' keyword.");
Method methods[] = actor.getClass().getMethods();
Method result = null;
for (int i = 0; i < methods.length; i++) {
Method m = methods[i];
if (m.getName().equals(test) && m.getParameterTypes().length == args) {
if (result == null) {
result = m;
} else {
throw new FitFailureException("You can only have one " + test + "(arg) method in your fixture.");
}
}
}
if (result == null) {
throw new NoSuchMethodFitFailureException(test);