[threeten-dev] Please help to review new test cases for java.time.OffsetTime
Stephen Colebourne
scolebourne at joda.org
Mon Apr 29 05:01:45 PDT 2013
"test_periodUntil_InvalidTemporalUnit" should named
"test_periodUntil_invalidType" as it tests periodUtil between
OffsetTime and OffsetDateTIme.
"test_periodUntil_InvalidTemporalUnit" should test a period in an
invalid unit, such as querying the period in MONTHS
Otherwise looks good.
Stephen
On 28 April 2013 05:44, Patrick Zhang <patrick.zhang at oracle.com> wrote:
> Hi Team,
>
> Please help to review new test cases for OffsetTime.periodUntil().
>
> The test logic is simple, as description in javadoc:
> =============
> When two OffsetTime have different Offset, then the specified end time will
> be normalized to have same offset with start time.
> =============
> Then 01:01:01+10:00 to 02:01:01+10:00 should be 1 hour while 01:01:01+10:00
> to 02:01:01+9:00 should be 2 hours.
>
>
> Webrev:
> http://cr.openjdk.java.net/~pzhang/JSR310/java/time/OffsetTime/webrev/
>
> Test result:
> http://cr.openjdk.java.net/~pzhang/JSR310/java/time/OffsetTime/TCKOffsetTime.jtr
>
> Regards
> Patrick
More information about the threeten-dev
mailing list