Changeset 10462 in josm for trunk/test


Ignore:
Timestamp:
2016-06-23T02:12:21+02:00 (5 years ago)
Author:
Don-vip
Message:

sonar - Performance - Method passes constant String of length 1 to character overridden method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/MapViewStateTest.java

    r10398 r10462  
    136136        }
    137137    }
     138
     139    /**
     140     * Test {@link MapViewState.MapViewViewPoint#toString()} and {@link MapViewState.MapViewEastNorthPoint#toString()}
     141     */
     142    @Test
     143    public void testToString() {
     144        assertEquals("MapViewViewPoint [x=1.0, y=2.0]",
     145                state.getForView(1, 2).toString());
     146        assertEquals("MapViewEastNorthPoint [eastNorth=EastNorth[e=0.0, n=0.0]]",
     147                state.getPointFor(new EastNorth(0, 0)).toString());
     148    }
    138149}
Note: See TracChangeset for help on using the changeset viewer.