Changeset 61 in josm for test/org


Ignore:
Timestamp:
2006-03-15T23:16:04+01:00 (20 years ago)
Author:
imi
Message:
  • added search dialog in selection menu
  • changed way mapmode to switch to selection mode after way creation
  • changed way mapmode to ask what to do, if an other way was selected
  • fixed html encoding for tag attributes in OSM data export
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/org/openstreetmap/josm/test/OsmWriterTest.java

    r58 r61  
    1010import junit.framework.TestCase;
    1111
     12import org.jdom.Attribute;
    1213import org.jdom.Element;
    1314import org.jdom.JDOMException;
     
    5758        }
    5859
     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        }
    5974       
    6075        public void testLineSegment() throws Exception {
     
    110125         */
    111126        @Bug(47)
    112         public void testDeleteNewDoesReallyRemove() throws IOException, JDOMException {
     127        public void testDeleteNewDoesReallyRemove() throws Exception {
    113128                ds.tracks.iterator().next().setDeleted(true);
    114129                reparse();
     
    120135         * Verify that action tag is set correctly.
    121136         */
    122         public void testActionTag() throws IOException, JDOMException {
     137        public void testActionTag() throws Exception {
    123138                int id = 1;
    124139                for (OsmPrimitive osm : ds.allPrimitives())
Note: See TracChangeset for help on using the changeset viewer.