Ignore:
Timestamp:
2020-06-17T21:47:19+02:00 (4 years ago)
Author:
simon04
Message:

fix #19381 - Upload dialog: warn about large bounding box

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/osm/BBoxTest.java

    r15877 r16673  
    166166
    167167    /**
    168      * Unit test of {@link BBox#height} and {@link BBox#width} methods.
     168     * Unit test of {@link BBox#height} and {@link BBox#width} and {@link BBox#area} methods.
    169169     */
    170170    @Test
    171     public void testHeightWidth() {
     171    public void testHeightWidthArea() {
    172172        BBox b1 = new BBox(1, 2, 3, 5);
    173173        assertEquals(2, b1.width(), 1e-7);
    174174        assertEquals(3, b1.height(), 1e-7);
     175        assertEquals(6, b1.area(), 1e-7);
    175176        BBox b2 = new BBox();
    176177        assertEquals(0, b2.width(), 1e-7);
    177178        assertEquals(0, b2.height(), 1e-7);
     179        assertEquals(0, b2.area(), 1e-7);
    178180    }
    179181
Note: See TracChangeset for help on using the changeset viewer.