Changeset 17617 in josm
- Timestamp:
- 2021-03-21T13:56:17+01:00 (4 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/ValidationTask.java
r17616 r17617 8 8 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 9 9 import org.openstreetmap.josm.gui.layer.ValidatorLayer; 10 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 11 import org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor; 10 12 import org.openstreetmap.josm.gui.util.GuiHelper; 11 13 … … 36 38 Collection<OsmPrimitive> validatedPrimitives, 37 39 Collection<OsmPrimitive> formerValidatedPrimitives) { 38 super(tr("Validating"), false /*don't ignore exceptions */); 40 this(new PleaseWaitProgressMonitor(tr("Validating")), tests, validatedPrimitives, formerValidatedPrimitives); 41 } 42 43 protected ValidationTask(ProgressMonitor progressMonitor, 44 Collection<Test> tests, 45 Collection<OsmPrimitive> validatedPrimitives, 46 Collection<OsmPrimitive> formerValidatedPrimitives) { 47 super(tr("Validating"), progressMonitor, false /*don't ignore exceptions */); 39 48 this.validatedPrimitives = validatedPrimitives; 40 49 this.formerValidatedPrimitives = formerValidatedPrimitives; … … 94 103 } 95 104 } 105 106 /** 107 * Gets the validation errors accumulated until this moment. 108 * @return The list of errors 109 */ 110 public List<TestError> getErrors() { 111 return errors; 112 } 96 113 } -
trunk/test/performance/org/openstreetmap/josm/PerformanceTestUtils.java
r17615 r17617 37 37 public static DataSet getNeubrandenburgDataSet() throws IOException, IllegalDataException { 38 38 try (InputStream in = Compression.getUncompressedFileInputStream(new File(DATA_FILE))) { 39 return OsmReader.parseDataSet(in, NullProgressMonitor.INSTANCE); 39 DataSet dataSet = OsmReader.parseDataSet(in, NullProgressMonitor.INSTANCE); 40 dataSet.setName(DATA_FILE); 41 return dataSet; 40 42 } 41 43 } -
trunk/test/performance/org/openstreetmap/josm/data/validation/tests/MapCSSTagCheckerPerformanceTest.java
r17615 r17617 39 39 @Test 40 40 void testCity() { 41 tagChecker.visit(dsCity.allPrimitives()); 41 PerformanceTestUtils.runPerformanceTest("MapCSSTagChecker on " + dsCity.getName(), 42 () -> tagChecker.visit(dsCity.allPrimitives())); 42 43 } 43 44 }
Note:
See TracChangeset
for help on using the changeset viewer.