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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]