Skip to content

Commit

Permalink
Surefire Report Sort test classes
Browse files Browse the repository at this point in the history
  • Loading branch information
nhojpatrick committed Mar 13, 2022
1 parent a6e6634 commit 8005cae
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Deque;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
Expand Down Expand Up @@ -176,7 +175,16 @@ public void testSetCompleted( WrappedReportEntry testSetReportEntry, TestSetStat
private Map<String, Map<String, List<WrappedReportEntry>>> arrangeMethodStatistics(
WrappedReportEntry testSetReportEntry, TestSetStats testSetStats )
{
Map<String, Map<String, List<WrappedReportEntry>>> classMethodStatistics = new LinkedHashMap<>();
Map<String, Map<String, List<WrappedReportEntry>>> classMethodStatistics =
new TreeMap( new Comparator<String>()
{
@Override
public int compare( String s1,
String s2 )
{
return s1.compareTo( s2 );
}
} );
for ( WrappedReportEntry methodEntry : aggregateCacheFromMultipleReruns( testSetReportEntry, testSetStats ) )
{
String testClassName = methodEntry.getSourceName();
Expand Down

0 comments on commit 8005cae

Please sign in to comment.