Changeset 12620 in josm for trunk/test/unit/org/openstreetmap/josm/data/validation
- Timestamp:
- 2017-08-22T22:26:32+02:00 (9 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data/validation
- Files:
-
- 4 edited
-
routines/DomainValidatorTest.java (modified) (6 diffs)
-
routines/DomainValidatorTestIT.java (modified) (2 diffs)
-
routines/RegexValidatorTest.java (modified) (2 diffs)
-
tests/MapCSSTagCheckerTest.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/routines/DomainValidatorTest.java
r11621 r12620 30 30 import org.junit.Before; 31 31 import org.junit.Test; 32 import org.openstreetmap.josm.Main;33 32 import org.openstreetmap.josm.data.validation.routines.DomainValidator.ArrayType; 33 import org.openstreetmap.josm.tools.Logging; 34 34 35 35 /** … … 342 342 } catch (IllegalArgumentException iae) { 343 343 // expected 344 Main.debug(iae.getMessage());344 Logging.debug(iae.getMessage()); 345 345 } 346 346 try { … … 349 349 } catch (IllegalArgumentException iae) { 350 350 // expected 351 Main.debug(iae.getMessage());351 Logging.debug(iae.getMessage()); 352 352 } 353 353 try { … … 356 356 } catch (IllegalArgumentException iae) { 357 357 // expected 358 Main.debug(iae.getMessage());358 Logging.debug(iae.getMessage()); 359 359 } 360 360 try { … … 363 363 } catch (IllegalArgumentException iae) { 364 364 // expected 365 Main.debug(iae.getMessage());365 Logging.debug(iae.getMessage()); 366 366 } 367 367 } … … 431 431 } catch (IllegalStateException ise) { 432 432 // expected 433 Main.debug(ise.getMessage());433 Logging.debug(ise.getMessage()); 434 434 } 435 435 } -
trunk/test/unit/org/openstreetmap/josm/data/validation/routines/DomainValidatorTestIT.java
r11621 r12620 48 48 49 49 import org.junit.Test; 50 import org.openstreetmap.josm. Main;50 import org.openstreetmap.josm.tools.Logging; 51 51 52 52 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; … … 84 84 timestamp = download(txtFile, "http://data.iana.org/TLD/tlds-alpha-by-domain.txt", 0L); 85 85 } catch (ConnectException e) { 86 Main.error(e);86 Logging.error(e); 87 87 // Try again one more time in case of random network issue 88 88 timestamp = download(txtFile, "http://data.iana.org/TLD/tlds-alpha-by-domain.txt", 0L); -
trunk/test/unit/org/openstreetmap/josm/data/validation/routines/RegexValidatorTest.java
r10378 r12620 27 27 28 28 import org.junit.Test; 29 import org.openstreetmap.josm. Main;29 import org.openstreetmap.josm.tools.Logging; 30 30 31 31 /** … … 244 244 } catch (PatternSyntaxException e) { 245 245 // expected 246 Main.debug(e.getMessage());246 Logging.debug(e.getMessage()); 247 247 } 248 248 } -
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/MapCSSTagCheckerTest.java
r11493 r12620 19 19 import org.junit.Rule; 20 20 import org.junit.Test; 21 import org.openstreetmap.josm.Main;22 21 import org.openstreetmap.josm.TestUtils; 23 22 import org.openstreetmap.josm.command.ChangePropertyCommand; … … 38 37 import org.openstreetmap.josm.io.OsmReader; 39 38 import org.openstreetmap.josm.testutils.JOSMTestRules; 39 import org.openstreetmap.josm.tools.Logging; 40 40 41 41 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; … … 185 185 } 186 186 for (String msg : assertionErrors) { 187 Main.error(msg);187 Logging.error(msg); 188 188 } 189 189 assertTrue("not all assertions included in the tests are met", assertionErrors.isEmpty());
Note:
See TracChangeset
for help on using the changeset viewer.
