Changeset 7086 in josm for trunk/test


Ignore:
Timestamp:
2014-05-09T10:38:10+02:00 (6 years ago)
Author:
simon04
Message:

see #8465 - see r7082 - fix unit test related to the UTF_8 constant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/io/OsmChangesetContentParserTest.groovy

    r6552 r7086  
    33
    44import org.junit.Test
    5 import org.openstreetmap.josm.tools.Utils
    6 
    7 import static org.junit.Assert.*;
     5
     6import java.nio.charset.StandardCharsets
     7
    88import org.openstreetmap.josm.data.osm.ChangesetDataSet;
    99import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
     
    1414import org.openstreetmap.josm.data.osm.history.HistoryWay;
    1515import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
    16 import org.openstreetmap.josm.io.OsmChangesetContentParser;
    1716
    1817
     
    4342               
    4443                // should be OK
    45                 parser = new OsmChangesetContentParser(new ByteArrayInputStream(doc.getBytes(Utils.UTF_8)))
     44                parser = new OsmChangesetContentParser(new ByteArrayInputStream(doc.getBytes(StandardCharsets.UTF_8)))
    4645                parser.parse null
    4746               
    4847                // should be OK
    49                 parser = new OsmChangesetContentParser(new ByteArrayInputStream(doc.getBytes(Utils.UTF_8)))
     48                parser = new OsmChangesetContentParser(new ByteArrayInputStream(doc.getBytes(StandardCharsets.UTF_8)))
    5049                parser.parse NullProgressMonitor.INSTANCE
    5150               
Note: See TracChangeset for help on using the changeset viewer.