Ignore:
Timestamp:
2016-05-10T01:31:36+02:00 (8 years ago)
Author:
Don-vip
Message:

update to checkstyle 6.18

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/io/GeoJSONWriterTest.java

    r10165 r10171  
    11// License: GPL. For details, see LICENSE file.
    22package org.openstreetmap.josm.io;
     3
     4import static org.junit.Assert.assertEquals;
    35
    46import org.junit.BeforeClass;
     
    1113import org.openstreetmap.josm.gui.preferences.projection.ProjectionPreference;
    1214
    13 import static org.hamcrest.CoreMatchers.*;
    14 import static org.junit.Assert.*;
    15 
     15/**
     16 * Unit tests of {@link GeoJSONWriter} class.
     17 */
    1618public class GeoJSONWriterTest {
    1719
     
    2426    }
    2527
     28    /**
     29     * Unit test
     30     */
    2631    @Test
    27     public void testPoint() throws Exception {
     32    public void testPoint() {
    2833        final Node node = new Node(new LatLon(12.3, 4.56));
    2934        node.put("name", "foo");
     
    3338        final OsmDataLayer layer = new OsmDataLayer(ds, "foo", null);
    3439        final GeoJSONWriter writer = new GeoJSONWriter(layer, ProjectionPreference.wgs84.getProjection());
    35         assertThat(writer.write().trim(), is(("" +
     40        assertEquals(("" +
    3641                "{\n" +
    3742                "    'type':'FeatureCollection',\n" +
     
    5964                "        }\n" +
    6065                "    ]\n" +
    61                 "}").replace("'", "\"")));
     66                "}").replace("'", "\""), writer.write().trim());
    6267    }
    6368}
Note: See TracChangeset for help on using the changeset viewer.