Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > subclipse commit: r959 - trunk/svnClientAdapter/src/testcases/org/tigris/subversion/svnclientadapter/commandline

subclipse
Discussion topic

Back to topic list

subclipse commit: r959 - trunk/svnClientAdapter/src/testcases/org/tigris/subversion/svnclientadapter/commandline

Author mml
Full name McClain Looney
Date 2004-09-29 09:36:22 PDT
Message Author: mml
Date: Wed Sep 29 11:36:14 2004
New Revision: 959

Modified:
   trunk/svnClientAdapt​er/src/testcases/org​/tigris/subversion/s​vnclientadapter/comm​andline/HelperTest.j​ava
Log:
fix for deprecations

Modified: trunk/svnClientAdapt​er/src/testcases/org​/tigris/subversion/s​vnclientadapter/comm​andline/HelperTest.j​ava
Url: http://svn.collab.ne​t/viewcvs/subclipse/​trunk/svnClientAdapt​er/src/testcases/org​/tigris/subversion/s​vnclientadapter/comm​andline/HelperTest.j​ava?view=diff&re​v=959&p1=trunk/s​vnClientAdapter/src/​testcases/org/tigris​/subversion/svnclien​tadapter/commandline​/HelperTest.java​&r1=958&p2=trunk​/svnClientAdapter/sr​c/testcases/org/tigr​is/subversion/svncli​entadapter/commandli​ne/HelperTest.java​&r2=959
====================​====================​====================​==================
--- trunk/svnClientAdapt​er/src/testcases/org​/tigris/subversion/s​vnclientadapter/comm​andline/HelperTest.j​ava (original)
+++ trunk/svnClientAdapt​er/src/testcases/org​/tigris/subversion/s​vnclientadapter/comm​andline/HelperTest.j​ava Wed Sep 29 11:36:14 2004
@@ -1,6 +1,6 @@
 package org.tigris.subversio​n.svnclientadapter.c​ommandline;
 
-import java.util.Date;
+import java.util.Calendar;
 
 import junit.framework.TestCase;
 
@@ -10,10 +10,15 @@
         
         // before patch from Jennifer Bevan, svnClientAdapter was incorrectly
         // setting dates at 12:xx PM to 12:xx AM
- assertEquals(new Date(2003-1900, 0, 10, 23, 21,54), Helper.convertXMLDat​e("2003-01-10T23:21:​54.831325Z"));
- assertEquals(new Date(2003-1900, 0, 11, 12, 01,06), Helper.convertXMLDat​e("2003-01-11T12:01:​06.649052Z"));
- assertEquals(new Date(2003-1900, 0, 11, 0, 4,33), Helper.convertXMLDat​e("2003-01-11T00:04:​33.633658Z"));
- assertEquals(new Date(2003-1900, 0, 11, 12, 13,31), Helper.convertXMLDat​e("2003-01-11T12:13:​31.499504Z"));
+ Calendar cal = Calendar.getInstance();
+ cal.set(2003, 0, 10,23,21,54);
+ assertEquals(cal.get​Time().toString(), Helper.convertXMLDat​e("2003-01-10T23:21:​54.831325Z").toStrin​g());
+ cal.set(2003, 0, 11,12,01,06);
+ assertEquals(cal.get​Time().toString(), Helper.convertXMLDat​e("2003-01-11T12:01:​06.649052Z").toStrin​g());
+ cal.set(2003, 0,11,0,4,33);
+ assertEquals(cal.get​Time().toString(), Helper.convertXMLDat​e("2003-01-11T00:04:​33.633658Z").toStrin​g());
+ cal.set(2003,0,11,12,13,31);
+ assertEquals(cal.get​Time().toString(), Helper.convertXMLDat​e("2003-01-11T12:13:​31.499504Z").toStrin​g());
     }
 
 }

--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@subc​lipse.tigris.org
For additional commands, e-mail: cvs-help at subclipse dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

subclipse commit: r959 - trunk/svnClientAdapter/src/testcases/org/tigris/subversion/svnclientadapter/commandline mml McClain Looney 2004-09-29 09:36:22 PDT
Messages per page: