Changeset 9716 in josm for trunk/test
- Timestamp:
- 2016-02-02T23:01:02+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/osm/RelationTest.java
r8510 r9716 2 2 package org.openstreetmap.josm.data.osm; 3 3 4 import static org.junit.Assert.assertEquals; 4 5 import static org.junit.Assert.assertFalse; 6 import static org.junit.Assert.assertTrue; 5 7 6 8 import org.junit.Assert; … … 104 106 Assert.assertEquals(new BBox(w1), r1.getBBox()); 105 107 } 108 109 /** 110 * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/12467">Bug #12467</a>. 111 * @throws Exception if any error occurs 112 */ 113 @Test 114 public void testTicket12467() throws Exception { 115 Relation r = new Relation(); 116 r.put("type", "boundary"); 117 assertTrue(r.isBoundary()); 118 assertTrue(r.isMultipolygon()); 119 assertEquals(OsmPrimitiveType.RELATION, r.getDisplayType()); 120 121 r.put("type", "multipolygon"); 122 assertFalse(r.isBoundary()); 123 assertTrue(r.isMultipolygon()); 124 assertEquals(OsmPrimitiveType.MULTIPOLYGON, r.getDisplayType()); 125 126 r.put("type", "something_else"); 127 assertFalse(r.isBoundary()); 128 assertFalse(r.isMultipolygon()); 129 assertEquals(OsmPrimitiveType.RELATION, r.getDisplayType()); 130 } 106 131 }
Note:
See TracChangeset
for help on using the changeset viewer.