Uses of Class
org.openstreetmap.josm.data.validation.Test
Packages that use Test
Package
Description
Provides the classes for JOSM data validation.
Provides the classes for JOSM data validation tests.
Provides classes for handling validator preferences.
-
Uses of Test in org.openstreetmap.josm.data.validation
Subclasses of Test in org.openstreetmap.josm.data.validationModifier and TypeClassDescriptionstatic classA test that forwards all primitives toTest.TagTest.check(OsmPrimitive).Fields in org.openstreetmap.josm.data.validation declared as TestModifier and TypeFieldDescriptionprivate final TestTestError.Builder.testerprivate final TestTestError.testerThe tester that raised this errorFields in org.openstreetmap.josm.data.validation with type parameters of type TestModifier and TypeFieldDescriptionprivate static final Collection<Class<? extends Test>>OsmValidator.allTestsAll registered testsOsmValidator.allTestsMapprivate BiConsumer<ValidationTask,Test> ValidationTask.testConsumerprivate Collection<Test>ValidationTask.testsMethods in org.openstreetmap.josm.data.validation with type parameters of type TestModifier and TypeMethodDescriptionstatic <T extends Test>
TReturns the instance of the given test class.Methods in org.openstreetmap.josm.data.validation that return TestMethods in org.openstreetmap.josm.data.validation that return types with arguments of type TestModifier and TypeMethodDescriptionstatic Collection<Class<? extends Test>>OsmValidator.getAllAvailableTestClasses()Gets the list of all available test classesOsmValidator.getAllTestsMap()Gets a map from simple names to all tests.static Collection<Test>OsmValidator.getEnabledTests(boolean beforeUpload) Gets all tests that are runstatic Collection<Test>OsmValidator.getTests()Gets all tests that are possibleMethods in org.openstreetmap.josm.data.validation with parameters of type TestMethod parameters in org.openstreetmap.josm.data.validation with type arguments of type TestModifier and TypeMethodDescriptionstatic voidAdds a test to the list of available testsprivate static voidOsmValidator.applyPrefs(Map<String, Test> tests, boolean beforeUpload) static voidOsmValidator.initializeTests(Collection<? extends Test> allTests) Initializes all testsstatic booleanOsmValidator.removeTest(Class<? extends Test> testClass) Removes a test from the list of available tests.voidValidationTask.setTestConsumer(BiConsumer<ValidationTask, Test> testConsumer) A test consumer to avoid filling up memory.Constructors in org.openstreetmap.josm.data.validation with parameters of type TestModifierConstructorDescription(package private)Constructor parameters in org.openstreetmap.josm.data.validation with type arguments of type TestModifierConstructorDescriptionValidationTask(Collection<Test> tests, Collection<OsmPrimitive> validatedPrimitives, Collection<OsmPrimitive> formerValidatedPrimitives) Constructs a newValidationTaskValidationTask(Consumer<List<TestError>> onFinish, ProgressMonitor progressMonitor, Collection<Test> tests, Collection<OsmPrimitive> validatedPrimitives, Collection<OsmPrimitive> formerValidatedPrimitives, boolean beforeUpload) Constructs a newValidationTaskprotectedValidationTask(ProgressMonitor progressMonitor, Collection<Test> tests, Collection<OsmPrimitive> validatedPrimitives, Collection<OsmPrimitive> formerValidatedPrimitives) -
Uses of Test in org.openstreetmap.josm.data.validation.tests
Subclasses of Test in org.openstreetmap.josm.data.validation.testsModifier and TypeClassDescriptionclassPerforms validation tests on addresses (addr:housenumber) and associatedStreet relations.classPerforms validation tests against OSM API capabilities.classPerforms validation tests on barriers and entrances.classCheck coastlines for errorsclassChecks for conditional restrictionsclassCheck for inconsistencies in lane information between relation and members.classTests if there are segments that crosses in the same layer/levelstatic classCrossing boundaries ways test.static classSelf crossing ways test (for all ways)static classGeneral crossing ways test.classTest for detecting cycles in a directed graph, currently used for waterways only.classFind nodes with direction tag and invalid number of parent ways or position in way.classChecks for ways with identical consecutive nodes.classTests if there are duplicate nodesclassTests if there are duplicate relationsclassTests if there are duplicate waysclassTest that performs semantic checks on highways.classPerforms validation tests on internet-related tags (websites, e-mail addresses, etc.).classTest that validateslane:tags.classChecks for very long segments.classMapCSS-based tag checker/fixer.(package private) static classclassChecks if multipolygons are validclassCheck for missing name:* translations.classTests the correct usage of the opening hour syntax of the tagsopening_hours,collection_times,service_timesaccording to OpeningHoursParser.classTests if there are overlapping ways.classChecks for nodes in power lines/minor_lines that do not have a power=tower/pole/portal tag nodes where the reference numbering not consistent ways where are unusually long segments without line support feature ways where the line type is possibly misused See #7812 and #20716 for discussions about this test.classTests for public transport routes.classCheck for wrong relations.classChecks for buildings with angles close to right angle.classChecks for self-intersecting ways.classFind highways that have sharp anglesclassChecks for similar named ways, symptom of a possible typo.classCheck for misspelled or wrong tagsclassChecks if turn restrictions are validclassCheck area type ways for errorsclassChecks if a way has an endpoint very near to another way.static classUnconnected highways test.static classUnconnected natural/landuse test.static classUnconnected power ways test.static classUnconnected railways test.static classUnconnected waterways test.classChecks for nodes with uninteresting tags that are in no wayclassChecks for untagged waysclassChecks for ways connected to areas.classCheck cyclic ways for errorsMethods in org.openstreetmap.josm.data.validation.tests with parameters of type TestModifier and TypeMethodDescriptionDuplicateNode.buildTestErrors(Test parentTest, List<Node> nodes) Returns the list of "duplicate nodes" errors for the given selection of node and parent testMapCSSTagCheckerRule.getErrorsForPrimitive(OsmPrimitive p, Selector matchingSelector, Environment env, Test tester) Constructs aTestErrorfor the given primitive, or returns null if the primitive does not give rise to an error. -
Uses of Test in org.openstreetmap.josm.gui.preferences.validator
Fields in org.openstreetmap.josm.gui.preferences.validator with type parameters of type TestModifier and TypeFieldDescriptionprivate Collection<Test>ValidatorTestsPreference.allTestsThe list of all tests