Changeset 12035 in josm


Ignore:
Timestamp:
2017-05-01T17:24:07+02:00 (23 months ago)
Author:
Don-vip
Message:

add more unit tests

Location:
trunk/test/unit/org/openstreetmap/josm/data/osm
Files:
1 added
1 edited

Legend:

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

    r11973 r12035  
    1414import org.junit.Test;
    1515import org.openstreetmap.josm.Main;
     16import org.openstreetmap.josm.TestUtils;
    1617import org.openstreetmap.josm.data.coor.LatLon;
    1718import org.openstreetmap.josm.data.osm.ChangesetDataSet.ChangesetDataSetEntry;
     
    2021import org.openstreetmap.josm.data.osm.history.HistoryOsmPrimitive;
    2122import org.openstreetmap.josm.testutils.JOSMTestRules;
     23import org.openstreetmap.josm.tools.Logging;
    2224
    2325import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     
    8587        assertEquals(prim1, cdse.getPrimitive());
    8688        assertFalse(it.hasNext());
     89        try {
     90            it.remove();
     91            fail("remove should throw UnsupportedOperationException");
     92        } catch (UnsupportedOperationException e) {
     93            Logging.trace(e.getMessage());
     94        }
     95    }
     96
     97    /**
     98     * Unit test of {@link ChangesetModificationType} enum.
     99     */
     100    @Test
     101    public void testEnumChangesetModificationType() {
     102        TestUtils.superficialEnumCodeCoverage(ChangesetModificationType.class);
    87103    }
    88104}
Note: See TracChangeset for help on using the changeset viewer.