Ignore:
Timestamp:
2018-09-08T20:20:58+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #16723 - Display changes count in changeset manager

File:
1 edited

Legend:

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

    r11020 r14231  
    2727            "<changeset id=\"36749147\" user=\"kesler\" uid=\"13908\" created_at=\"2016-01-22T21:55:37Z\" "+
    2828                "closed_at=\"2016-01-22T21:56:39Z\"  open=\"false\" min_lat=\"36.6649211\" min_lon=\"55.377015\" max_lat=\"38.1490357\" " +
    29                 "max_lon=\"60.3766983\" comments_count=\"2\">" +
     29                "max_lon=\"60.3766983\" comments_count=\"2\" changes_count=\"9\">" +
    3030            "<tag k=\"created_by\" v=\"JOSM/1.5 (9329 en)\"/>" +
    3131            "<tag k=\"comment\" v=\"Fixing errors in North Khorasan\"/>";
     
    7575        Changeset cs = parse(BEGIN + END).iterator().next();
    7676        assertEquals(2, cs.getCommentsCount());
     77        assertEquals(9, cs.getChangesCount());
    7778        assertTrue(cs.getDiscussion().isEmpty());
    7879    }
     
    8788        Changeset cs = parse(BEGIN + DISCUSSION + END).iterator().next();
    8889        assertEquals(2, cs.getCommentsCount());
     90        assertEquals(9, cs.getChangesCount());
    8991        assertEquals(2, cs.getDiscussion().size());
    9092    }
Note: See TracChangeset for help on using the changeset viewer.