Commits

Anonymous committed a257a4c

Changed classloader test for multiple resources to dtd file

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@1133e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits c77aa0c

Comments (0)

Files changed (3)

src/test/com/opensymphony/xwork2/util/ClassLoaderUtilTest.java

     }
     
     public void testGetResources_Multiple() throws IOException {
-        Iterator<URL> i = ClassLoaderUtil.getResources("overview.html", ClassLoaderUtilTest.class, false);
+        Iterator<URL> i = ClassLoaderUtil.getResources("xwork-1.0.dtd", ClassLoaderUtilTest.class, false);
         assertNotNull(i);
         
         assertTrue(i.hasNext());
         URL url = i.next();
-        assertTrue(url.toString().endsWith("overview.html"));
+        assertTrue(url.toString().endsWith("xwork-1.0.dtd"));
         url = i.next();
-        assertTrue(url.toString().endsWith("overview.html"));
+        assertTrue(url.toString().endsWith("xwork-1.0.dtd"));
         assertTrue(!i.hasNext());
     }
 
     public void testGetResources_Aggregate() throws IOException {
-        Iterator<URL> i = ClassLoaderUtil.getResources("overview.html", ClassLoaderUtilTest.class, true);
+        Iterator<URL> i = ClassLoaderUtil.getResources("xwork-1.0.dtd", ClassLoaderUtilTest.class, true);
         assertNotNull(i);
 
         assertTrue(i.hasNext());
         URL url = i.next();
-        assertTrue(url.toString().endsWith("overview.html"));
+        assertTrue(url.toString().endsWith("xwork-1.0.dtd"));
         url = i.next();
-        assertTrue(url.toString().endsWith("overview.html"));
+        assertTrue(url.toString().endsWith("xwork-1.0.dtd"));
         assertTrue(!i.hasNext());
     }
-    
+
     public void testGetResources_None() throws IOException {
         Iterator<URL> i = ClassLoaderUtil.getResources("asdfasdf.html", ClassLoaderUtilTest.class, false);
         assertNotNull(i);

src/test/overview.html

-Duplicate file test

src/test/xwork-1.0.dtd

+Duplicate file test