rmannibucau commented on code in PR #34:
URL: https://github.com/apache/geronimo-xbean/pull/34#discussion_r1045281610


##########
xbean-finder/src/test/java/org/apache/xbean/finder/archive/JarArchiveTest.java:
##########
@@ -85,34 +87,53 @@ public void testLoadClass() throws Exception {
 
     @Test
     public void testIterator() throws Exception {
-        List<String> actual = new ArrayList<>();
-        for (Archive.Entry entry : this.archive) {
+        List<String> actual = new ArrayList<String>();
+        for (Archive.Entry entry : archive) {
             actual.add(entry.getName());
         }
 
         Assert.assertFalse(0 == actual.size());
 
-        for (Class clazz : JarArchiveTest.classes) {
+        for (Class clazz : classes) {
             Assert.assertTrue(clazz.getName(), 
actual.contains(clazz.getName()));
         }
 
         Assert.assertEquals(JarArchiveTest.classes.length, actual.size());
     }
 
-
     @Test
     public void testXBEAN337() throws Exception {
 
+        // Virtual path
+        JarArchive jar;
+
         String path = "/this!/!file!/does!/!not/exist.jar";
-        URL[] urls = {new URL("jar:file:" + path + "!/")};
+        URL[] urls = {new URL("jar:file:" + path + 
"!/some!/!inner!/.jar!/file.jar")};

Review Comment:
   ok, works for me since it shouldn't affect jar scanning much



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@geronimo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to