[threeten-dev] Please help to review new test cases for styles in java.time.format package.

Stephen Colebourne scolebourne at joda.org
Thu May 23 02:23:24 PDT 2013


While I would say that most of these things are tested elsewhere, I'm
happy for these tests to go in.
Stephen

On 23 May 2013 04:43, Patrick Zhang <patrick.zhang at oracle.com> wrote:
> 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