chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1605473 - /chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java
Date Wed, 25 Jun 2014 16:20:21 GMT
Author: fmui
Date: Wed Jun 25 16:20:21 2014
New Revision: 1605473

URL: http://svn.apache.org/r1605473
Log:
TCK: added simple time zone check

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java?rev=1605473&r1=1605472&r2=1605473&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/impl/AbstractSessionTest.java
Wed Jun 25 16:20:21 2014
@@ -961,6 +961,10 @@ public abstract class AbstractSessionTes
                 f = createResult(FAILURE, "Last modification date precedes creation date!");
                 addResult(results,
                         assertIsTrue(creationDate.getTimeInMillis() <= lastModificationDate.getTimeInMillis(),
null, f));
+
+                f = createResult(WARNING, "Creation date and last modification date have
different timezones.");
+                addResult(assertIsTrue(creationDate.getTimeZone().hasSameRules(lastModificationDate.getTimeZone()),
+                        null, f));
             }
 
             // allowable actions
@@ -1614,7 +1618,6 @@ public abstract class AbstractSessionTes
                     addResult(results,
                             assertIsTrue(version.getCreationDate().getTimeInMillis() <=
creatationDate, null, f));
                 }
-                version.getCreationDate().getTimeInMillis();
 
                 // count latest versions and latest major versions
                 if (version.isLatestVersion()) {



Mime
View raw message