Changeset 10235 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2016-05-17T02:02:30+02:00 (9 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/JOSMFixture.java
r10222 r10235 7 7 import java.io.IOException; 8 8 import java.nio.file.Paths; 9 import java.security.GeneralSecurityException; 9 10 import java.text.MessageFormat; 10 11 import java.util.Locale; … … 98 99 try { 99 100 CertificateAmendment.addMissingCertificates(); 100 } catch (IOException ex) {101 } catch (IOException | GeneralSecurityException ex) { 101 102 throw new RuntimeException(ex); 102 103 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/MapPaintPreferenceTestIT.java
r10222 r10235 5 5 import static org.junit.Assert.assertTrue; 6 6 7 import java.io.IOException;8 7 import java.util.Collection; 9 8 import java.util.Collections; … … 24 23 import org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSRule; 25 24 import org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource; 26 import org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.ParseException;27 25 import org.openstreetmap.josm.gui.preferences.SourceEditor.ExtendedSourceEntry; 28 26 … … 51 49 /** 52 50 * Test that available map paint styles are valid. 53 * @throws IOException if any I/O error occurs 54 * @throws ParseException if the config file does not match MapCSS syntax 51 * @throws Exception in case of error 55 52 */ 56 53 @Test 57 public void testValidityOfAvailableStyles() throws ParseException, IOException {54 public void testValidityOfAvailableStyles() throws Exception { 58 55 Collection<ExtendedSourceEntry> sources = new MapPaintPreference.MapPaintSourceEditor() 59 56 .loadAndGetAvailableSources(); -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/TaggingPresetPreferenceTestIT.java
r10222 r10235 46 46 /** 47 47 * Test that available tagging presets are valid. 48 * @throws Exception in case of error 48 49 */ 49 50 @Test 50 public void testValidityOfAvailablePresets() {51 public void testValidityOfAvailablePresets() throws Exception { 51 52 Collection<ExtendedSourceEntry> sources = new TaggingPresetPreference.TaggingPresetSourceEditor() 52 53 .loadAndGetAvailableSources(); -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/validator/ValidatorTagCheckerRulesPreferenceTestIT.java
r9669 r10235 14 14 import org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker; 15 15 import org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker.ParseResult; 16 import org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.ParseException;17 16 import org.openstreetmap.josm.gui.preferences.SourceEditor.ExtendedSourceEntry; 18 17 … … 32 31 /** 33 32 * Test that available tag checker rules are valid. 34 * @throws IOException if any I/O error occurs 35 * @throws ParseException if the config file does not match MapCSS syntax 33 * @throws Exception in case of error 36 34 */ 37 35 @Test 38 public void testValidityOfAvailableRules() throws ParseException, IOException {36 public void testValidityOfAvailableRules() throws Exception { 39 37 Collection<ExtendedSourceEntry> sources = new ValidatorTagCheckerRulesPreference.TagCheckerRulesSourceEditor() 40 38 .loadAndGetAvailableSources();
Note:
See TracChangeset
for help on using the changeset viewer.