@@ -83,38 +83,6 @@ public void testGetCountryCode() {
83
83
assertEquals (null , getCountryCode (new Locale ("" , "DJJZ" ).getCountry ()));
84
84
}
85
85
86
- @ Test
87
- @ Config (sdk = 16 )
88
- public void testFormatNumberToE164_belowApi21 () {
89
- String validPhoneNumber = "+919994947354" ;
90
- CountryInfo indiaCountryInfo = new CountryInfo (new Locale ("" , "IN" ), 91 );
91
- // no leading plus
92
- assertEquals (validPhoneNumber , format ("9994947354" , indiaCountryInfo ));
93
- // fully formatted
94
- assertEquals (validPhoneNumber , format ("+919994947354" , indiaCountryInfo ));
95
- // parantheses and hyphens
96
- assertEquals (validPhoneNumber , format ("(99949) 47-354" , indiaCountryInfo ));
97
-
98
- // The following cases would fail for lower api versions.
99
- // Leaving tests in place to formally identify cases
100
-
101
- // no leading +
102
- // assertEquals(validPhoneNumber, format("919994947354", indiaCountryInfo));
103
-
104
- // with hyphens
105
- // assertEquals(validPhoneNumber, format("+91-(999)-(49)-(47354)",
106
- // indiaCountryInfo));
107
-
108
- // with spaces leading plus
109
- // assertEquals(validPhoneNumber, format("+91 99949 47354", indiaCountryInfo));
110
-
111
- // space formatting
112
- // assertEquals(validPhoneNumber, format("91 99949 47354", indiaCountryInfo));
113
-
114
- // invalid phone number
115
- // assertNull(format("999474735", indiaCountryInfo));
116
- }
117
-
118
86
@ Test
119
87
public void testGetCurrentCountryInfo_fromSim () {
120
88
Context context = mock (Context .class );
0 commit comments