|
34 | 34 | import java.io.OutputStreamWriter;
|
35 | 35 | import java.io.PrintWriter;
|
36 | 36 | import java.util.ArrayList;
|
| 37 | +import java.util.Collections; |
| 38 | +import java.util.Comparator; |
37 | 39 | import java.util.Deque;
|
38 | 40 | import java.util.LinkedHashMap;
|
39 | 41 | import java.util.List;
|
@@ -151,7 +153,22 @@ public void testSetCompleted( WrappedReportEntry testSetReportEntry, TestSetStat
|
151 | 153 |
|
152 | 154 | showProperties( ppw, testSetReportEntry.getSystemProperties() );
|
153 | 155 |
|
154 |
| - for ( Entry<String, Map<String, List<WrappedReportEntry>>> statistics : classMethodStatistics.entrySet() ) |
| 156 | + List<Entry<String, Map<String, List<WrappedReportEntry>>>> classMethodStatisticsEntries = |
| 157 | + new ArrayList<>( classMethodStatistics.entrySet() ); |
| 158 | + |
| 159 | + Collections.sort( classMethodStatisticsEntries, |
| 160 | + new Comparator<Entry<String, Map<String, List<WrappedReportEntry>>>>() |
| 161 | + { |
| 162 | + @Override |
| 163 | + public int compare( Entry<String, Map<String, List<WrappedReportEntry>>> o1, |
| 164 | + Entry<String, Map<String, List<WrappedReportEntry>>> o2 ) |
| 165 | + { |
| 166 | + return o1.getKey().compareTo( o2.getKey() ); |
| 167 | + } |
| 168 | + } |
| 169 | + ); |
| 170 | + |
| 171 | + for ( Entry<String, Map<String, List<WrappedReportEntry>>> statistics : classMethodStatisticsEntries ) |
155 | 172 | {
|
156 | 173 | for ( Entry<String, List<WrappedReportEntry>> thisMethodRuns : statistics.getValue().entrySet() )
|
157 | 174 | {
|
|
0 commit comments