>        Date dsDate = dateService
> -            
> .iso8601DateParseWithOptionalTZ(testData[0].iso8601SecondsDateString);
> -      Date secondsDate = dateService
> -            .iso8601SecondsDateParse(testData[0].iso8601SecondsDateString);
> -      assertEquals(dsDate, secondsDate);
> +            .iso8601DateOrSecondsDateParse(testData[0].iso8601DateString);
> +      assertEquals(dsDate, testData[0].date);
> +
> +      Date dsSecondsDate = dateService
> +            
> .iso8601DateOrSecondsDateParse(testData[0].iso8601SecondsDateString);
> +      assertEquals(dsSecondsDate, testData[0].date);
> +   }
> +
> +   @Test(expectedExceptions = IllegalArgumentException.class)
> +   public void testIso8601DateOrSecondsDateParseIllegal() {
> +      dateService.iso8601DateOrSecondsDateParse("-1");

Not verifying here that it throws the _first_ exception, but I think this 
should be enough.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/457/files#r15462761

Reply via email to