Skip to content

Commit 5037f86

Browse files
HeikoKlareakurtakov
authored andcommitted
Remove sorting parameter from ConfigurationSessionTestSuite #903
The ConfigurationSessionTestSuite sorts the test methods by default. A field identifies whether sorting is activated, but the field cannot even be set but is always true. So, this parameterization is completely obsolete and only introduces unnecessary complexity to the session test framework. Contributes to #903
1 parent 3a6a514 commit 5037f86

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

runtime/tests/org.eclipse.core.tests.harness/src/org/eclipse/core/tests/session/ConfigurationSessionTestSuite.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,9 @@ public class ConfigurationSessionTestSuite extends SessionTestSuite {
6262
private IPath configurationPath = FileSystemHelper.getRandomLocation(FileSystemHelper.getTempDir());
6363
private boolean prime = true;
6464
private boolean readOnly;
65-
// should the test cases be run in alphabetical order?
66-
private boolean shouldSort;
6765

6866
public ConfigurationSessionTestSuite(String pluginId, Class<?> theClass) {
6967
super(pluginId, theClass);
70-
this.shouldSort = true;
7168
}
7269

7370
public ConfigurationSessionTestSuite(String pluginId, String name) {
@@ -269,11 +266,6 @@ public void run(TestResult result) {
269266
fail(e);
270267
}
271268
}
272-
if (!shouldSort) {
273-
// for shared sessions, we don't control the execution of test cases
274-
super.run(result);
275-
return;
276-
}
277269
// we have to sort the tests cases
278270
Test[] allTests = getTests(true);
279271
// now run the tests in order

0 commit comments

Comments
 (0)