Changeset 10219 in josm
- Timestamp:
- 2016-05-15T18:48:35+02:00 (8 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJobTest.java
r9973 r10219 7 7 import java.net.MalformedURLException; 8 8 import java.net.URL; 9 import java.nio.charset.StandardCharsets; 9 10 10 11 import org.apache.commons.jcs.access.behavior.ICacheAccess; … … 46 47 @Override 47 48 protected CacheEntry createCacheEntry(byte[] content) { 48 return new CacheEntry("dummy".getBytes( ));49 return new CacheEntry("dummy".getBytes(StandardCharsets.UTF_8)); 49 50 } 50 51 } -
trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java
r9957 r10219 222 222 Process process = pb.start(); 223 223 OutputStream stdin = process.getOutputStream(); 224 final BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(stdin ));224 final BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(stdin, StandardCharsets.UTF_8)); 225 225 InputStream stdout = process.getInputStream(); 226 final BufferedReader reader = new BufferedReader(new InputStreamReader(stdout ));226 final BufferedReader reader = new BufferedReader(new InputStreamReader(stdout, StandardCharsets.UTF_8)); 227 227 String input = String.format("%.9f %.9f\n", ll.lon(), ll.lat()); 228 228 writer.write(input); -
trunk/test/unit/org/openstreetmap/josm/data/validation/routines/DomainValidatorTestIT.java
r9869 r10219 23 23 import java.io.Closeable; 24 24 import java.io.File; 25 import java.io.FileInputStream; 25 26 import java.io.FileOutputStream; 26 import java.io.FileReader;27 27 import java.io.IOException; 28 28 import java.io.InputStream; 29 import java.io.InputStreamReader; 29 30 import java.lang.reflect.Field; 30 31 import java.lang.reflect.Modifier; … … 32 33 import java.net.IDN; 33 34 import java.net.URL; 35 import java.nio.charset.StandardCharsets; 34 36 import java.text.SimpleDateFormat; 35 37 import java.util.Date; … … 80 82 download(htmlFile, "http://www.iana.org/domains/root/db", timestamp); 81 83 82 BufferedReader br = new BufferedReader(new FileReader(txtFile));84 BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(txtFile), StandardCharsets.UTF_8)); 83 85 String line; 84 86 final String header; … … 184 186 final Pattern comment = Pattern.compile("\\s+<td>([^<]+)</td>"); 185 187 186 final BufferedReader br = new BufferedReader(new FileReader(f));188 final BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(f), StandardCharsets.UTF_8)); 187 189 String line; 188 190 while ((line = br.readLine()) != null) { … … 288 290 File rootCheck = new File(System.getProperty("java.io.tmpdir"), "tld_" + domain + ".html"); 289 291 download(rootCheck, tldurl, 0L); 290 in = new BufferedReader(new FileReader(rootCheck));292 in = new BufferedReader(new InputStreamReader(new FileInputStream(rootCheck), StandardCharsets.UTF_8)); 291 293 String inputLine; 292 294 while ((inputLine = in.readLine()) != null) {
Note:
See TracChangeset
for help on using the changeset viewer.