leosutic 2004/03/19 16:04:03
Modified: attributes/unittest/src/test/org/apache/commons/attributes/test
AttributesTestCase.java
Log:
Updated the test. There has apparently been a change in the
directory the unit tests are invoked from, resulting in the relative
paths being all wrong.
Revision Changes Path
1.10 +3 -3
jakarta-commons-sandbox/attributes/unittest/src/test/org/apache/commons/attributes/test/AttributesTestCase.java
Index: AttributesTestCase.java
===================================================================
RCS file:
/home/cvs/jakarta-commons-sandbox/attributes/unittest/src/test/org/apache/commons/attributes/test/AttributesTestCase.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- AttributesTestCase.java 19 Feb 2004 14:49:15 -0000 1.9
+++ AttributesTestCase.java 20 Mar 2004 00:04:03 -0000 1.10
@@ -239,8 +239,8 @@
* won't mess up the attribute cache.
*/
public void testClassLoaderKeying () throws Exception {
- URLClassLoader cl1 = new URLClassLoader (new URL[]{new File
("unittest/target/cl1/").toURL ()}, getClass().getClassLoader ());
- URLClassLoader cl2 = new URLClassLoader (new URL[]{new File
("unittest/target/cl2/").toURL ()}, getClass().getClassLoader ());
+ URLClassLoader cl1 = new URLClassLoader (new URL[]{new File
("target/cl1/").toURL ()}, getClass().getClassLoader ());
+ URLClassLoader cl2 = new URLClassLoader (new URL[]{new File
("target/cl2/").toURL ()}, getClass().getClassLoader ());
Class cl1Class = cl1.loadClass ("TestClass");
Class cl2Class = cl2.loadClass ("TestClass");
@@ -250,7 +250,7 @@
}
public void testAttributeIndex () throws Exception {
- URLClassLoader cl2 = new URLClassLoader (new URL[]{new File
("unittest/target/cl2/cl2.jar").toURL ()}, getClass().getClassLoader ());
+ URLClassLoader cl2 = new URLClassLoader (new URL[]{new File
("target/cl2/cl2.jar").toURL ()}, getClass().getClassLoader ());
AttributeIndex index = new AttributeIndex (cl2);
Collection classes = index.getClassesWithAttribute ("TestAttribute");
System.out.println (classes);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]