- Timestamp:
- 2006-03-15T23:16:04+01:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/org/openstreetmap/josm/test/OsmWriterTest.java
r58 r61 10 10 import junit.framework.TestCase; 11 11 12 import org.jdom.Attribute; 12 13 import org.jdom.Element; 13 14 import org.jdom.JDOMException; … … 57 58 } 58 59 60 @Bug(59) 61 public void testSpecialChars() throws Exception { 62 StringBuilder sb = new StringBuilder(); 63 for (int i = 32; i < 0xd800; ++i) 64 sb.append((char)i); 65 String s = sb.toString(); 66 n1.put(Key.get(s), s); 67 reparse(); 68 assertEquals(1, nodes.get(0).getChildren().size()); 69 Attribute key = ((Element)nodes.get(0).getChildren().get(0)).getAttribute("k"); 70 assertEquals(s, key.getValue()); 71 Attribute value = ((Element)nodes.get(0).getChildren().get(0)).getAttribute("v"); 72 assertEquals(s, value.getValue()); 73 } 59 74 60 75 public void testLineSegment() throws Exception { … … 110 125 */ 111 126 @Bug(47) 112 public void testDeleteNewDoesReallyRemove() throws IOException, JDOMException {127 public void testDeleteNewDoesReallyRemove() throws Exception { 113 128 ds.tracks.iterator().next().setDeleted(true); 114 129 reparse(); … … 120 135 * Verify that action tag is set correctly. 121 136 */ 122 public void testActionTag() throws IOException, JDOMException {137 public void testActionTag() throws Exception { 123 138 int id = 1; 124 139 for (OsmPrimitive osm : ds.allPrimitives())
Note:
See TracChangeset
for help on using the changeset viewer.
