Changeset 6995 in josm for trunk/test/functional


Ignore:
Timestamp:
2014-04-23T02:30:39+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #9906 - fix reliance on default encoding

Location:
trunk/test/functional/org/openstreetmap/josm/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/functional/org/openstreetmap/josm/io/MultiFetchServerObjectReaderTest.java

    r6920 r6995  
    1010import java.io.File;
    1111import java.io.FileInputStream;
    12 import java.io.FileWriter;
     12import java.io.FileOutputStream;
    1313import java.io.IOException;
    1414import java.io.InputStream;
     15import java.io.OutputStreamWriter;
    1516import java.io.PrintWriter;
    1617import java.text.MessageFormat;
     
    3637import org.openstreetmap.josm.gui.io.UploadStrategySpecification;
    3738import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
     39import org.openstreetmap.josm.tools.Utils;
    3840
    3941public class MultiFetchServerObjectReaderTest {
     
    211213        try {
    212214            PrintWriter pw = new PrintWriter(
    213                     new FileWriter(dataSetCacheOutputFile)
     215                    new OutputStreamWriter(new FileOutputStream(dataSetCacheOutputFile), Utils.UTF_8)
    214216            );
    215217            logger.info(MessageFormat.format("caching test data set in ''{0}'' ...", dataSetCacheOutputFile.toString()));
  • trunk/test/functional/org/openstreetmap/josm/io/OsmServerBackreferenceReaderTest.java

    r6920 r6995  
    88import java.io.File;
    99import java.io.FileInputStream;
    10 import java.io.FileWriter;
     10import java.io.FileOutputStream;
    1111import java.io.IOException;
    1212import java.io.InputStream;
     13import java.io.OutputStreamWriter;
    1314import java.io.PrintWriter;
    1415import java.text.MessageFormat;
     
    3738import org.openstreetmap.josm.gui.io.UploadStrategySpecification;
    3839import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
     40import org.openstreetmap.josm.tools.Utils;
    3941
    4042public class OsmServerBackreferenceReaderTest {
     
    218220        try {
    219221            PrintWriter pw = new PrintWriter(
    220                     new FileWriter(dataSetCacheOutputFile)
     222                    new OutputStreamWriter(new FileOutputStream(dataSetCacheOutputFile), Utils.UTF_8)
    221223            );
    222224            logger.info(MessageFormat.format("caching test data set in ''{0}'' ...", dataSetCacheOutputFile.toString()));
Note: See TracChangeset for help on using the changeset viewer.