ICU-5902 Disable warnings in DateFormat/DurationFormat serialization test for 3.8 release.

X-SVN-Rev: 22597
This commit is contained in:
Yoshito Umaoka 2007-08-31 06:38:27 +00:00
parent d1a8c32ebf
commit a516a115d0

View File

@ -72,12 +72,13 @@ public class FormatTests
return formats;
}
//TODO: Revisit this after 3.8
public boolean hasSameBehavior(Object a, Object b) {
//DurationFormat da = (DurationFormat)a;
//DurationFormat db = (DurationFormat)b;
/*Date d = */new Date(12345);
System.err.println("Warning: BasicDurationFormat test is being skipped for now.");
//Date d = new Date(12345);
//System.err.println("Warning: BasicDurationFormat test is being skipped for now.");
return true;
//return da.format(d).equals(db.format(d));
}
@ -983,11 +984,11 @@ public class FormatTests
String sfa = dfa.format(date);
String sfb = dfb.format(date);
//TODO: This test case will fail if locale data is updated
if (!sfa.equals(sfb)) {
System.err.println("\nWarning: Different DateFormat outputs\n [a] "
+ sfa + "\n [b] " + sfb);
}
//TODO: This test case will fail if locale data is updated.
//if (!sfa.equals(sfb)) {
// System.err.println("\nWarning: Different DateFormat outputs\n [a] "
// + sfa + "\n [b] " + sfb);
//}
//return sfa.equals(sfb);
return true;
}