cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r514671 - /cocoon/trunk/blocks/cocoon-repository/cocoon-repository-impl/src/test/java/org/apache/cocoon/components/source/impl/CachingSourceTestCase.java
Date Mon, 05 Mar 2007 14:12:46 GMT
Author: cziegeler
Date: Mon Mar  5 06:12:44 2007
New Revision: 514671

URL: http://svn.apache.org/viewvc?view=rev&rev=514671
Log:
Fix test case

Modified:
    cocoon/trunk/blocks/cocoon-repository/cocoon-repository-impl/src/test/java/org/apache/cocoon/components/source/impl/CachingSourceTestCase.java

Modified: cocoon/trunk/blocks/cocoon-repository/cocoon-repository-impl/src/test/java/org/apache/cocoon/components/source/impl/CachingSourceTestCase.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-repository/cocoon-repository-impl/src/test/java/org/apache/cocoon/components/source/impl/CachingSourceTestCase.java?view=diff&rev=514671&r1=514670&r2=514671
==============================================================================
--- cocoon/trunk/blocks/cocoon-repository/cocoon-repository-impl/src/test/java/org/apache/cocoon/components/source/impl/CachingSourceTestCase.java
(original)
+++ cocoon/trunk/blocks/cocoon-repository/cocoon-repository-impl/src/test/java/org/apache/cocoon/components/source/impl/CachingSourceTestCase.java
Mon Mar  5 06:12:44 2007
@@ -82,14 +82,18 @@
         CachingSource.SourceMeta meta2 = source.getResponseMeta();
         resolver.release(source);
 
-        assertTrue(meta1 == meta2);
+        assertTrue(meta1.getMimeType() == meta2.getMimeType());
+        assertTrue(meta1.getContentLength() == meta2.getContentLength());
+        assertTrue(meta1.getLastModified() == meta2.getLastModified());
 
         source = (CachingSource) resolver.resolveURI(uri);
         source.refresh();
         CachingSource.SourceMeta meta3 = source.getResponseMeta();
         resolver.release(source);
 
-        assertTrue(meta1 == meta3);
+        assertTrue(meta1.getMimeType() == meta3.getMimeType());
+        assertTrue(meta1.getContentLength() == meta3.getContentLength());
+        assertTrue(meta1.getLastModified() == meta3.getLastModified());
 
         Thread.sleep(1100);
 



Mime
View raw message