added test for negative timezones

This commit is contained in:
Adrian Cole 2010-08-23 21:29:20 -07:00
parent c08fb5ddfd
commit f2b074e2a5
1 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,9 @@ public class DateServiceTest extends PerformanceTest {
public DateServiceTest() {
// Constant time test values, each TestData item must contain matching times!
testData = new TestData[] {
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)),
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)),