Skip to content

Commit

Permalink
Sort methods by display name instead of method name
Browse files Browse the repository at this point in the history
  • Loading branch information
Martosis authored and richardso21 committed Feb 9, 2024
1 parent 780921a commit b06aeef
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ public TestMethodResult(TestIdentifier id,

@Override
public int compareTo(TestMethodResult other) {
int methodNameCompared = source.getMethodName().compareTo(other.source.getMethodName());

return (methodNameCompared == 0)? id.getDisplayName().compareTo(other.id.getDisplayName())
: methodNameCompared;
return id.getDisplayName().compareTo(other.id.getDisplayName());
}
}

0 comments on commit b06aeef

Please sign in to comment.