You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by we...@apache.org on 2004/04/06 18:47:15 UTC
cvs commit: jakarta-jetspeed-2/portal/src/test/org/apache/jetspeed/cache/file TestFileCache.java
weaver 2004/04/06 09:47:15
Modified: portal/src/test/org/apache/jetspeed/cache/file
TestFileCache.java
Log:
TestFileCache fails if there are any extraneous files in the test data directory. I currently put
added a check to skip ".cvsignore". We should probably add a custom comparator to ONLY
read the default.psml and test-* files for testing purposes.
Revision Changes Path
1.5 +3 -3 jakarta-jetspeed-2/portal/src/test/org/apache/jetspeed/cache/file/TestFileCache.java
Index: TestFileCache.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/test/org/apache/jetspeed/cache/file/TestFileCache.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- TestFileCache.java 8 Mar 2004 00:36:06 -0000 1.4
+++ TestFileCache.java 6 Apr 2004 16:47:15 -0000 1.5
@@ -107,11 +107,11 @@
File[] files = directory.listFiles();
for (int ix=0; ix < files.length; ix++)
{
- if (files[ix].isDirectory())
+ if (files[ix].isDirectory() || files[ix].getName().equals(".cvsignore"))
{
continue;
}
- String testData = readFile(files[ix]);
+ String testData = readFile(files[ix]);
cache.put(files[ix], testData);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org