File tree Expand file tree Collapse file tree 3 files changed +16
-6
lines changed
src/test/java/org/htmlunit/general Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,11 @@ public class DedicatedWorkerGlobalScopeConstantsTest extends WebDriverTestCase {
50
50
*/
51
51
public static Collection <Arguments > data () throws Exception {
52
52
final List <Arguments > list = new ArrayList <>();
53
- final Set <String > strings = TestCaseTest .getAllConfiguredJsClassNames ();
54
- for (final String host : strings ) {
53
+ final Set <String > classNames = TestCaseTest .getAllConfiguredJsClassNames ();
54
+ final ArrayList <String > classNamesSorted = new ArrayList <>(classNames );
55
+ Collections .sort (classNamesSorted );
56
+
57
+ for (final String host : classNamesSorted ) {
55
58
if (!"Audio" .equals (host )) {
56
59
list .add (Arguments .of (host ));
57
60
}
Original file line number Diff line number Diff line change @@ -48,8 +48,11 @@ public class HostConstantsTest extends WebDriverTestCase {
48
48
*/
49
49
public static Collection <Arguments > data () throws Exception {
50
50
final List <Arguments > list = new ArrayList <>();
51
- final Set <String > strings = TestCaseTest .getAllConfiguredJsClassNames ();
52
- for (final String host : strings ) {
51
+ final Set <String > classNames = TestCaseTest .getAllConfiguredJsClassNames ();
52
+ final ArrayList <String > classNamesSorted = new ArrayList <>(classNames );
53
+ Collections .sort (classNamesSorted );
54
+
55
+ for (final String host : classNamesSorted ) {
53
56
if (!"Audio" .equals (host )) {
54
57
list .add (Arguments .of (host ));
55
58
}
Original file line number Diff line number Diff line change 16
16
17
17
import java .util .ArrayList ;
18
18
import java .util .Collection ;
19
+ import java .util .Collections ;
19
20
import java .util .List ;
20
21
import java .util .Set ;
21
22
@@ -40,8 +41,11 @@ public class HostConstructorTest extends WebDriverTestCase {
40
41
*/
41
42
public static Collection <Arguments > data () throws Exception {
42
43
final List <Arguments > list = new ArrayList <>();
43
- final Set <String > strings = TestCaseTest .getAllConfiguredJsClassNames ();
44
- for (final String className : strings ) {
44
+ final Set <String > classNames = TestCaseTest .getAllConfiguredJsClassNames ();
45
+ final ArrayList <String > classNamesSorted = new ArrayList <>(classNames );
46
+ Collections .sort (classNamesSorted );
47
+
48
+ for (final String className : classNamesSorted ) {
45
49
list .add (Arguments .of (className ));
46
50
}
47
51
return list ;
You can’t perform that action at this time.
0 commit comments