Changeset 6268 in josm for trunk/test/functional/org/openstreetmap
- Timestamp:
- 2013-09-27T19:50:29+02:00 (11 years ago)
- Location:
- trunk/test/functional/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/gui/history/HistoryBrowserTest.java
r5556 r6268 6 6 import java.awt.BorderLayout; 7 7 import java.io.File; 8 import java.io.InputStream; 8 9 import java.text.MessageFormat; 9 10 import java.util.Properties; … … 37 38 // 38 39 try { 39 testProperties.load(HistoryBrowserTest.class.getResourceAsStream("/test-functional-env.properties")); 40 InputStream is = HistoryBrowserTest.class.getResourceAsStream("/test-functional-env.properties"); 41 testProperties.load(is); 42 is.close(); 40 43 } catch(Exception e){ 41 44 logger.log(Level.SEVERE, MessageFormat.format("failed to load property file ''{0}''", "test-functional-env.properties")); … … 83 86 } 84 87 88 /** 89 * Constructs a new {@code HistoryBrowserTest}. 90 */ 85 91 public HistoryBrowserTest(){ 86 92 build(); -
trunk/test/functional/org/openstreetmap/josm/io/MultiFetchServerObjectReaderTest.java
r5556 r6268 12 12 import java.io.FileWriter; 13 13 import java.io.IOException; 14 import java.io.InputStream; 14 15 import java.io.PrintWriter; 15 16 import java.text.MessageFormat; … … 138 139 // 139 140 try { 140 testProperties.load(MultiFetchServerObjectReaderTest.class.getResourceAsStream("/test-functional-env.properties")); 141 InputStream is = MultiFetchServerObjectReaderTest.class.getResourceAsStream("/test-functional-env.properties"); 142 testProperties.load(is); 143 is.close(); 141 144 } catch(Exception e){ 142 145 logger.log(Level.SEVERE, MessageFormat.format("failed to load property file ''{0}''", "test-functional-env.properties")); -
trunk/test/functional/org/openstreetmap/josm/io/OsmServerBackreferenceReaderTest.java
r5556 r6268 10 10 import java.io.FileWriter; 11 11 import java.io.IOException; 12 import java.io.InputStream; 12 13 import java.io.PrintWriter; 13 14 import java.text.MessageFormat; … … 145 146 // 146 147 try { 147 testProperties.load(MultiFetchServerObjectReaderTest.class.getResourceAsStream("/test-functional-env.properties")); 148 InputStream is = MultiFetchServerObjectReaderTest.class.getResourceAsStream("/test-functional-env.properties"); 149 testProperties.load(is); 150 is.close(); 148 151 } catch(Exception e){ 149 152 logger.log(Level.SEVERE, MessageFormat.format("failed to load property file ''{0}''", "test-functional-env.properties"));
Note:
See TracChangeset
for help on using the changeset viewer.