File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
src/test/java/walkingkooka/j2cl/java/text Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 21
21
import org .junit .jupiter .api .Test ;
22
22
import walkingkooka .HashCodeEqualsDefinedTesting2 ;
23
23
import walkingkooka .ToStringTesting ;
24
- import walkingkooka .collect .set .Sets ;
24
+ import walkingkooka .collect .set .SortedSets ;
25
25
import walkingkooka .j2cl .locale .WalkingkookaLanguageTag ;
26
26
import walkingkooka .predicate .Predicates ;
27
27
@@ -46,7 +46,7 @@ public final class DateFormatSymbolsTest extends JavaTextTestCase<DateFormatSymb
46
46
public void testGetAvailableLocales () {
47
47
final Comparator <Locale > comparator = (l , r ) -> l .toLanguageTag ().compareTo (r .toLanguageTag ());
48
48
49
- final Set <Locale > jdk = Sets . sorted (comparator );
49
+ final Set <Locale > jdk = SortedSets . tree (comparator );
50
50
for (final Locale locale : java .text .DateFormatSymbols .getAvailableLocales ()) {
51
51
switch (locale .toString ()) {
52
52
case "th_TH_TH_#u-nu-thai" :
@@ -58,7 +58,7 @@ public void testGetAvailableLocales() {
58
58
}
59
59
}
60
60
61
- final Set <Locale > emulated = Sets . sorted (comparator );
61
+ final Set <Locale > emulated = SortedSets . tree (comparator );
62
62
emulated .addAll (Arrays .asList (DateFormatSymbols .getAvailableLocales ()));
63
63
64
64
this .checkEquals (jdk , emulated );
Original file line number Diff line number Diff line change 21
21
import org .junit .jupiter .api .Test ;
22
22
import walkingkooka .HashCodeEqualsDefinedTesting2 ;
23
23
import walkingkooka .ToStringTesting ;
24
- import walkingkooka .collect .set .Sets ;
24
+ import walkingkooka .collect .set .SortedSets ;
25
25
import walkingkooka .j2cl .java .io .string .StringDataInputDataOutput ;
26
26
import walkingkooka .j2cl .java .text .generated .DateFormatSymbolsProvider ;
27
27
import walkingkooka .j2cl .locale .WalkingkookaLanguageTag ;
@@ -66,7 +66,7 @@ public void testRegisterThenDataInputThrowsEOF() throws Exception {
66
66
public void testGetAvailableLocales () {
67
67
final Comparator <Locale > comparator = (l , r ) -> l .toLanguageTag ().compareTo (r .toLanguageTag ());
68
68
69
- final Set <Locale > jdk = Sets . sorted (comparator );
69
+ final Set <Locale > jdk = SortedSets . tree (comparator );
70
70
for (final Locale locale : java .text .DateFormatSymbols .getAvailableLocales ()) {
71
71
switch (locale .toString ()) {
72
72
case "th_TH_TH_#u-nu-thai" :
@@ -78,7 +78,7 @@ public void testGetAvailableLocales() {
78
78
}
79
79
}
80
80
81
- final Set <Locale > emulated = Sets . sorted (comparator );
81
+ final Set <Locale > emulated = SortedSets . tree (comparator );
82
82
emulated .addAll (Arrays .asList (DecimalFormatSymbols .getAvailableLocales ()));
83
83
84
84
this .checkEquals (jdk , emulated );
Original file line number Diff line number Diff line change 18
18
package walkingkooka .j2cl .java .text ;
19
19
20
20
import org .junit .jupiter .api .Test ;
21
- import walkingkooka .collect .set .Sets ;
21
+ import walkingkooka .collect .set .SortedSets ;
22
22
23
23
import java .lang .reflect .Field ;
24
24
import java .lang .reflect .Method ;
@@ -54,7 +54,7 @@ public void testIntegerField() {
54
54
public void testGetAvailableLocales () {
55
55
final Comparator <Locale > comparator = (l , r ) -> l .toLanguageTag ().compareTo (r .toLanguageTag ());
56
56
57
- final Set <Locale > jdk = Sets . sorted (comparator );
57
+ final Set <Locale > jdk = SortedSets . tree (comparator );
58
58
for (final Locale locale : java .text .DateFormatSymbols .getAvailableLocales ()) {
59
59
switch (locale .toString ()) {
60
60
case "th_TH_TH_#u-nu-thai" :
@@ -66,7 +66,7 @@ public void testGetAvailableLocales() {
66
66
}
67
67
}
68
68
69
- final Set <Locale > emulated = Sets . sorted (comparator );
69
+ final Set <Locale > emulated = SortedSets . tree (comparator );
70
70
emulated .addAll (Arrays .asList (NumberFormat .getAvailableLocales ()));
71
71
72
72
this .checkEquals (jdk , emulated );
You can’t perform that action at this time.
0 commit comments