Changeset 12027 in josm


Ignore:
Timestamp:
2017-04-29T23:24:04+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/OsmPrimitiveTypeTest.java

    r12018 r12027  
    177177        assertEquals(6, r.getVersion());
    178178    }
     179
     180    /**
     181     * Unit test of {@link OsmPrimitiveType#newVersionedInstance} method - error case.
     182     */
     183    @Test(expected = AssertionError.class)
     184    public void testNewVersionedInstanceError() {
     185        OsmPrimitiveType.CLOSEDWAY.newVersionedInstance(1, 0);
     186    }
    179187}
Note: See TracChangeset for help on using the changeset viewer.