mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-09 15:27:38 +00:00
ICU-4094 Add API/Method Coverage tests for ICU4J
X-SVN-Rev: 16671
This commit is contained in:
parent
b975d6f016
commit
917180dab9
1 changed files with 12 additions and 0 deletions
|
@ -388,6 +388,18 @@ public class TimeZoneTest extends TestFmwk
|
|||
!name.equals("GMT+0130") &&
|
||||
!name.equals("GMT+130"))
|
||||
errln("Fail: Expected GMT+01:30 or something similar");
|
||||
|
||||
// cover getDisplayName() - null arg
|
||||
ULocale save = ULocale.getDefault();
|
||||
ULocale.setDefault(ULocale.US);
|
||||
name = zone2.getDisplayName();
|
||||
logln("GMT+90min->" + name + "for default display locale");
|
||||
if (!name.equals("GMT+01:30") &&
|
||||
!name.equals("GMT+1:30") &&
|
||||
!name.equals("GMT+0130") &&
|
||||
!name.equals("GMT+130"))
|
||||
errln("Fail: Expected GMT+01:30 or something similar");
|
||||
ULocale.setDefault(save);
|
||||
}
|
||||
|
||||
public void TestGenericAPI() {
|
||||
|
|
Loading…
Add table
Reference in a new issue