This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
import java.io.OutputStream;
import java.io.Reader;
import java.net.URL;
import java.net.URI;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
private String filenameOfTestProperties() throws Exception {
return EditablePropertiesTest.class.getResource("data/test.properties").getPath();
// #50987: getResource() returns a URL which can potentially include escaped
// chars (e.g. '%20' instead of ' '). Need to unescape by converting to URI.
// Note that URL.toURI() would be simpler on 1.5.
return new URI(EditablePropertiesTest.class.getResource("data/test.properties").toString()).getPath();
}
private EditableProperties loadTestProperties() throws IOException {