Changeset 8937 in josm for trunk/test/unit
- Timestamp:
- 2015-10-24T00:54:52+02:00 (9 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/gui/preferences
- Files:
-
- 3 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/preferences/validator/ValidatorTagCheckerRulesPreferenceTest.java
r8936 r8937 6 6 7 7 import java.io.IOException; 8 import java.util.ArrayList; 8 9 import java.util.Collection; 9 10 … … 35 36 */ 36 37 @Test 37 public void testValidityOfAvailable Sources() throws ParseException, IOException {38 public void testValidityOfAvailableRules() throws ParseException, IOException { 38 39 Collection<ExtendedSourceEntry> sources = new ValidatorTagCheckerRulesPreference.TagCheckerRulesSourceEditor() 39 40 .loadAndGetAvailableSources(); 40 41 assertFalse(sources.isEmpty()); 42 Collection<Throwable> allErrors = new ArrayList<>(); 41 43 MapCSSTagChecker tagChecker = new MapCSSTagChecker(); 42 44 for (ExtendedSourceEntry source : sources) { … … 44 46 ParseResult result = tagChecker.addMapCSS(source.url); 45 47 assertFalse(result.parseChecks.isEmpty()); 46 assertTrue(result.parseErrors.isEmpty());47 System.out.println(" => OK");48 System.out.println(result.parseErrors.isEmpty() ? " => OK" : " => KO"); 49 allErrors.addAll(result.parseErrors); 48 50 } 51 assertTrue(allErrors.isEmpty()); 49 52 } 50 53 }
Note:
See TracChangeset
for help on using the changeset viewer.