geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r1095858 - in /geronimo/xbean/trunk/xbean-finder/src: main/java/org/apache/xbean/finder/archive/JarArchive.java test/java/org/apache/xbean/finder/archive/JarArchiveTest.java
Date Fri, 22 Apr 2011 01:56:49 GMT
Author: xuhaihong
Date: Fri Apr 22 01:56:49 2011
New Revision: 1095858

URL: http://svn.apache.org/viewvc?rev=1095858&view=rev
Log:
Fix test error on windows platform

Modified:
    geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/archive/JarArchive.java
    geronimo/xbean/trunk/xbean-finder/src/test/java/org/apache/xbean/finder/archive/JarArchiveTest.java

Modified: geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/archive/JarArchive.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/archive/JarArchive.java?rev=1095858&r1=1095857&r2=1095858&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/archive/JarArchive.java
(original)
+++ geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/archive/JarArchive.java
Fri Apr 22 01:56:49 2011
@@ -16,6 +16,7 @@
  */
 package org.apache.xbean.finder.archive;
 
+import java.io.File;
 import java.io.IOException;
 import java.io.InputStream;
 import java.net.URL;
@@ -100,7 +101,7 @@ public class JarArchive implements Archi
             String className = entry.getName();
             className = className.replaceFirst(".class$", "");
             if (className.contains(".")) continue;
-            className = className.replace('/', '.');
+            className = className.replace(File.separatorChar, '.');
             classNames.add(className);
         }
 

Modified: geronimo/xbean/trunk/xbean-finder/src/test/java/org/apache/xbean/finder/archive/JarArchiveTest.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-finder/src/test/java/org/apache/xbean/finder/archive/JarArchiveTest.java?rev=1095858&r1=1095857&r2=1095858&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-finder/src/test/java/org/apache/xbean/finder/archive/JarArchiveTest.java
(original)
+++ geronimo/xbean/trunk/xbean-finder/src/test/java/org/apache/xbean/finder/archive/JarArchiveTest.java
Fri Apr 22 01:56:49 2011
@@ -132,7 +132,7 @@ public class JarArchiveTest {
         assertFalse(0 == actual.size());
 
         for (Class clazz : classes) {
-            assertTrue(clazz.getName(), actual.contains(Blue.class.getName()));
+            assertTrue(clazz.getName(), actual.contains(clazz.getName()));
         }
 
         assertEquals(classes.length, actual.size());



Mime
View raw message