henning 2004/10/11 02:26:38
Modified: configuration/src/test/org/apache/commons/configuration
TestXMLConfiguration.java
Log:
Remove leading slashes from second test. Else it will not pass.
Revision Changes Path
1.14 +4 -4
jakarta-commons/configuration/src/test/org/apache/commons/configuration/TestXMLConfiguration.java
Index: TestXMLConfiguration.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/configuration/src/test/org/apache/commons/configuration/TestXMLConfiguration.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- TestXMLConfiguration.java 4 Oct 2004 21:45:11 -0000 1.13
+++ TestXMLConfiguration.java 11 Oct 2004 09:26:38 -0000 1.14
@@ -301,10 +301,10 @@
assertEquals(new File(testBasePath, "hello.xml"), conf.getFile());
conf.setBasePath(testBasePath);
- conf.setFileName("/subdir/hello.xml");
- assertEquals("/subdir/hello.xml", conf.getFileName());
+ conf.setFileName("subdir/hello.xml");
+ assertEquals("subdir/hello.xml", conf.getFileName());
assertEquals(testBasePath.toString(), conf.getBasePath());
- assertEquals(new File(testBasePath, "/subdir/hello.xml"), conf.getFile());
+ assertEquals(new File(testBasePath, "subdir/hello.xml"), conf.getFile());
}
public void testLoad() throws Exception
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]