Changeset 6208 in josm for trunk/test


Ignore:
Timestamp:
2013-08-30T01:19:26+02:00 (11 years ago)
Author:
Don-vip
Message:

fix #9027 - fix error in internal preset introduced in r6195 (patch by skyper) + validation check in build.xml and junit test (patch by AlfonZ)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/tagging/TaggingPresetReaderTest.java

    r6144 r6208  
    6464    }
    6565
     66    /**
     67     * Validate internal presets
     68     * See #9027
     69     */
     70    @Test
     71    public void readDefaulPresets() throws SAXException, IOException {
     72        String presetfile = "resource://data/defaultpresets.xml";
     73        final Collection<TaggingPreset> presets = TaggingPresetReader.readAll(presetfile, true);
     74        Assert.assertTrue("Default presets are empty", presets.size()>0);
     75    }
     76   
    6677}
Note: See TracChangeset for help on using the changeset viewer.