Skip to content

Commit

Permalink
Refactoring and better console reporting.
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed Aug 25, 2015
1 parent a208972 commit f77a999
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private String evaluateGroovyExpression(String key, String expression) {
result = shell.evaluate(groovy);
}
} catch (GroovyRuntimeException e) {
LOGGER.warn("Failed to evaluate build info expression '%s' for key %s",expression, key);
LOGGER.warn("Failed to evaluate build info expression '{0}' for key {1}",expression, key);
}
return (result != null) ? result.toString() : expression;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ private Method methodCalled(final String methodName, final Class<?> testClass) {
* Turns a method into a human-readable title.
*/
public String getTitle() {
return humanize(name);
try {
return humanize(AnnotatedStepDescription.from(this).getName());
} catch(IllegalArgumentException noMatchingMethod) {
return humanize(name);
}
}

public Map<String, Object> getDisplayedFields() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@

import com.google.common.base.Optional;
import com.google.common.base.Preconditions;
import com.google.common.base.Predicates;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import com.google.inject.Inject;
import net.thucydides.core.ThucydidesSystemProperty;
import net.thucydides.core.annotations.Step;
import net.thucydides.core.guice.Injectors;
import net.thucydides.core.model.*;
import net.thucydides.core.screenshots.ScreenshotProcessor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ public class HaveItemsDelivered implements Performable {
@Override
@Step("And {0} has them delivered")
public void performAs(Actor actor) {

}
}

0 comments on commit f77a999

Please sign in to comment.