river-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtra...@apache.org
Subject svn commit: r1148392 - /river/jtsk/skunk/surrogate/test/org/apache/river/container/classloading/ClasspathFilterParserTest.java
Date Tue, 19 Jul 2011 15:23:57 GMT
Author: gtrasuk
Date: Tue Jul 19 15:23:56 2011
New Revision: 1148392

URL: http://svn.apache.org/viewvc?rev=1148392&view=rev
Log:
Continuing work on classloading for surrogate modules.

Modified:
    river/jtsk/skunk/surrogate/test/org/apache/river/container/classloading/ClasspathFilterParserTest.java

Modified: river/jtsk/skunk/surrogate/test/org/apache/river/container/classloading/ClasspathFilterParserTest.java
URL: http://svn.apache.org/viewvc/river/jtsk/skunk/surrogate/test/org/apache/river/container/classloading/ClasspathFilterParserTest.java?rev=1148392&r1=1148391&r2=1148392&view=diff
==============================================================================
--- river/jtsk/skunk/surrogate/test/org/apache/river/container/classloading/ClasspathFilterParserTest.java
(original)
+++ river/jtsk/skunk/surrogate/test/org/apache/river/container/classloading/ClasspathFilterParserTest.java
Tue Jul 19 15:23:56 2011
@@ -97,4 +97,19 @@ public class ClasspathFilterParserTest {
         assertFalse(cpf.acceptsClass("org,apache.XYZ"));
         assertTrue(cpf.acceptsClass("org.apache.DEF"));
     }
+
+    /**
+    If there's no class specifications, should accept all class possibilities.
+    @throws Exception
+     */
+    @Test
+    public void testFilterAcceptanceWithJarOnly() throws Exception {
+        ClasspathFilterBuilder UUT = new ClasspathFilterBuilder();
+        String jarSpec = "reggie.jar";
+        ClasspathFilter cpf = UUT.parseToFilter(jarSpec);
+        assertEquals("reggie.jar", cpf.getJarName());
+        assertTrue(cpf.acceptsClass("org.apache.ABC"));
+        assertTrue(cpf.acceptsClass("org,apache.XYZ"));
+        assertTrue(cpf.acceptsClass("org.apache.DEF"));
+    }
 }



Mime
View raw message