You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-dev@jakarta.apache.org by as...@apache.org on 2006/02/14 19:01:39 UTC

svn commit: r377789 - /jakarta/jcs/trunk/src/test/org/apache/jcs/TestCacheElementRetrieval.java

Author: asmuts
Date: Tue Feb 14 10:01:37 2006
New Revision: 377789

URL: http://svn.apache.org/viewcvs?rev=377789&view=rev
Log:
fixed unit test

Modified:
    jakarta/jcs/trunk/src/test/org/apache/jcs/TestCacheElementRetrieval.java

Modified: jakarta/jcs/trunk/src/test/org/apache/jcs/TestCacheElementRetrieval.java
URL: http://svn.apache.org/viewcvs/jakarta/jcs/trunk/src/test/org/apache/jcs/TestCacheElementRetrieval.java?rev=377789&r1=377788&r2=377789&view=diff
==============================================================================
--- jakarta/jcs/trunk/src/test/org/apache/jcs/TestCacheElementRetrieval.java (original)
+++ jakarta/jcs/trunk/src/test/org/apache/jcs/TestCacheElementRetrieval.java Tue Feb 14 10:01:37 2006
@@ -43,7 +43,7 @@
         ICacheElement elem = jcs.getCacheElement( "test_key" );
         assertEquals( "Name wasn't right", "testCache1", elem.getCacheName() );
 
-        long diff = elem.getElementAttributes().getCreateTime() - now;
+        long diff = now - elem.getElementAttributes().getCreateTime();
         assertTrue( "Create time should have been at or after the call", diff >= 0 );
 
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-dev-help@jakarta.apache.org