ICU-3931 Added a temporary serialization test case for SelectFormat

X-SVN-Rev: 26944
This commit is contained in:
Yoshito Umaoka 2009-11-18 04:27:31 +00:00
parent c563c9cceb
commit 9ab5acc788
2 changed files with 11 additions and 0 deletions

View file

@ -2153,6 +2153,16 @@ public class FormatTests
}
}
public static class SelectFormatHandler implements SerializableTest.Handler {
// TODO - add real test case here!
public Object[] getTestObjects() {
return new Object[] { new TimeUnitFormat().setLocale(ULocale.ENGLISH) };
}
public boolean hasSameBehavior(Object a, Object b) {
return true;
}
}
public static void main(String[] args)
{
// nothing needed...

View file

@ -671,6 +671,7 @@ public class SerializableTest extends TestFmwk.TestGroup
map.put("com.ibm.icu.text.PluralFormat", new FormatTests.PluralFormatHandler());
map.put("com.ibm.icu.text.PluralRules", new FormatTests.PluralRulesHandler());
map.put("com.ibm.icu.text.TimeUnitFormat", new FormatTests.TimeUnitFormatHandler());
map.put("com.ibm.icu.text.SelectFormat", new FormatTests.SelectFormatHandler());
map.put("com.ibm.icu.util.Calendar", new CalendarTests.CalendarHandler());
map.put("com.ibm.icu.util.BuddhistCalendar", new CalendarTests.BuddhistCalendarHandler());