mirror of https://github.com/apache/jclouds.git
Issue 574: don't make build dependent on tz
This commit is contained in:
parent
98ff7b16fe
commit
3fea56253e
|
@ -79,7 +79,8 @@ public class DateServiceTest extends PerformanceTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
public DateServiceTest() {
|
public DateServiceTest() {
|
||||||
// Constant time test values, each TestData item must contain matching times!
|
// Constant time test values, each TestData item must contain matching
|
||||||
|
// times!
|
||||||
testData = new TestData[] {
|
testData = new TestData[] {
|
||||||
new TestData("2009-03-12T02:00:07.000Z", "2009-03-12T02:00:07-04:00", "2009-03-12T02:00:07Z",
|
new TestData("2009-03-12T02:00:07.000Z", "2009-03-12T02:00:07-04:00", "2009-03-12T02:00:07Z",
|
||||||
"Thu, 12 Mar 2009 02:00:07 GMT", "Thu Mar 12 02:00:07 +0000 2009", new Date(1236823207000l)),
|
"Thu, 12 Mar 2009 02:00:07 GMT", "Thu Mar 12 02:00:07 +0000 2009", new Date(1236823207000l)),
|
||||||
|
@ -164,10 +165,8 @@ public class DateServiceTest extends PerformanceTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void testTzWithExtraZ() throws ExecutionException, InterruptedException {
|
void testTzWithExtraZ() throws ExecutionException, InterruptedException {
|
||||||
assertEquals(dateService.iso8601SecondsDateParse("2011-05-26T06:14:13-04:00").toString(),
|
assertEquals(dateService.iso8601SecondsDateParse("2011-05-26T06:14:13-04:00").getTime(), 1306390453000l);
|
||||||
"Wed May 25 23:14:13 PDT 2011");
|
assertEquals(dateService.iso8601SecondsDateParse("2011-05-26T06:14:13-04:00Z").getTime(), 1306390453000l);
|
||||||
assertEquals(dateService.iso8601SecondsDateParse("2011-05-26T06:14:13-04:00Z").toString(),
|
|
||||||
"Wed May 25 23:14:13 PDT 2011");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue