Skip to content

Commit

Permalink
Improved log reporting for the Journey pattern.
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed Sep 7, 2015
1 parent 969c74b commit 3721d0a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ private String getTestNameFrom(final Method method, final Object[] args) {

private String getTestNameFrom(final Method method, final Object[] args, final boolean addMarkup) {
if ((args == null) || (args.length == 0)) {
return StepName.fromStepAnnotationIn(method).or(method.getName());
return method.getName();
} else {
return testNameWithArguments(method, args, addMarkup);
}
Expand All @@ -375,7 +375,7 @@ private String getTestNameFrom(final Method method, final Object[] args, final b
private String testNameWithArguments(final Method method,
final Object[] args,
final boolean addMarkup) {
StringBuilder testName = new StringBuilder(StepName.fromStepAnnotationIn(method).or(method.getName()));
StringBuilder testName = new StringBuilder(method.getName());
testName.append(": ");
if (addMarkup) {
testName.append("<span class='step-parameter'>");
Expand Down

0 comments on commit 3721d0a

Please sign in to comment.