DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=34362>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=34362 ------- Additional Comments From [EMAIL PROTECTED] 2005-04-25 16:09 ------- add this test case to TestFileConfiguration unit test class public void testFileOverwrite()throws Exception { String path = System.getProperties().getProperty("user.home"); String fileName = "test.properties"; Properties props = new Properties(); props.setProperty("1","one"); File file = new File(path+File.separator+fileName); file.delete(); props.store(new FileOutputStream(file),"TestFileOverwrite"); FileConfiguration config = new PropertiesConfiguration(fileName); config.load(); String value = config.getString("1"); assertTrue("one".equals(value)); config.setProperty("1","two"); config.save(); props = new Properties(); props.load(new FileInputStream(new File(path+File.separator+fileName))); String value2 = props.getProperty("1"); assertTrue("two".equals(value2)); } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]