[threeten-dev] Please help to review new test cases for styles in java.time.format package.
Patrick Zhang
patrick.zhang at oracle.com
Wed May 22 20:43:55 PDT 2013
Hi Team,
Please help to review tests for java.time.format.FormatStyle,
ResolverStyle, SignStyle and TextStyle.
Firstly the tests will check values() and valueOf() methods.
Then it creates simple DateTimeFormatter to check whether each items in
Enum work as description in javadoc.
In FormatStyle:
FormatStyle.FULL, LONG, MEDIUM and SHORT should print different detailed
info for ZonedDateTime.
In ResolverStyle:
ResolverStyle.LENIENT, SMART should parse some invalid date, like
"2000/15/30" or "2000/02/30", to nearest valid date.
ResolverStyle.STRICT should throws exception for invalid date.
In SignStyle:
SignStyle.ALWYAS, NEVER, EXCEEDS_PAD, NORMAL, NOT_NEGATIVE will print
"+" or "-" in different user scenarios.
webrev:
http://cr.openjdk.java.net/~pzhang/JSR310/java/time/format/webrev/
test result:
http://cr.openjdk.java.net/~pzhang/JSR310/java/time/format/TCKFormatStyle.jtr
http://cr.openjdk.java.net/~pzhang/JSR310/java/time/format/TCKResolverStyle.jtr
http://cr.openjdk.java.net/~pzhang/JSR310/java/time/format/TCKSignStyle.jtr
http://cr.openjdk.java.net/~pzhang/JSR310/java/time/format/TCKTextStyle.jtr
Regards
Patrick
More information about the threeten-dev
mailing list