Uses of Class
org.openstreetmap.josm.data.validation.Test
-
Packages that use Test Package Description org.openstreetmap.josm.data.validation Provides the classes for JOSM data validation.org.openstreetmap.josm.data.validation.tests Provides the classes for JOSM data validation tests.org.openstreetmap.josm.gui.preferences.validator Provides classes for handling validator preferences. -
-
Uses of Test in org.openstreetmap.josm.data.validation
Subclasses of Test in org.openstreetmap.josm.data.validation Modifier and Type Class Description static classTest.TagTestA test that forwards all primitives toTest.TagTest.check(OsmPrimitive).Fields in org.openstreetmap.josm.data.validation declared as Test Modifier and Type Field Description private TestTestError.Builder. testerprivate TestTestError. testerThe tester that raised this errorFields in org.openstreetmap.josm.data.validation with type parameters of type Test Modifier and Type Field Description private static java.util.Collection<java.lang.Class<? extends Test>>OsmValidator. allTestsAll registered testsprivate static java.util.Map<java.lang.String,Test>OsmValidator. allTestsMapprivate java.util.function.BiConsumer<ValidationTask,Test>ValidationTask. testConsumerprivate java.util.Collection<Test>ValidationTask. testsMethods in org.openstreetmap.josm.data.validation with type parameters of type Test Modifier and Type Method Description static <T extends Test>
TOsmValidator. getTest(java.lang.Class<T> testClass)Returns the instance of the given test class.Methods in org.openstreetmap.josm.data.validation that return Test Modifier and Type Method Description TestTestError. getTester()Gets the tester that raised this errorMethods in org.openstreetmap.josm.data.validation that return types with arguments of type Test Modifier and Type Method Description static java.util.Collection<java.lang.Class<? extends Test>>OsmValidator. getAllAvailableTestClasses()Gets the list of all available test classesstatic java.util.SortedMap<java.lang.String,Test>OsmValidator. getAllTestsMap()Gets a map from simple names to all tests.static java.util.Collection<Test>OsmValidator. getEnabledTests(boolean beforeUpload)Gets all tests that are runstatic java.util.Collection<Test>OsmValidator. getTests()Gets all tests that are possibleMethods in org.openstreetmap.josm.data.validation with parameters of type Test Modifier and Type Method Description static TestError.BuilderTestError. builder(Test tester, Severity severity, int code)Starts building a newTestErrorMethod parameters in org.openstreetmap.josm.data.validation with type arguments of type Test Modifier and Type Method Description static voidOsmValidator. addTest(java.lang.Class<? extends Test> testClass)Adds a test to the list of available testsprivate static voidOsmValidator. applyPrefs(java.util.Map<java.lang.String,Test> tests, boolean beforeUpload)static voidOsmValidator. initializeTests(java.util.Collection<? extends Test> allTests)Initializes all testsstatic booleanOsmValidator. removeTest(java.lang.Class<? extends Test> testClass)Removes a test from the list of available tests.voidValidationTask. setTestConsumer(java.util.function.BiConsumer<ValidationTask,Test> testConsumer)A test consumer to avoid filling up memory.Constructors in org.openstreetmap.josm.data.validation with parameters of type Test Constructor Description Builder(Test tester, Severity severity, int code)Constructor parameters in org.openstreetmap.josm.data.validation with type arguments of type Test Constructor Description ValidationTask(java.util.Collection<Test> tests, java.util.Collection<OsmPrimitive> validatedPrimitives, java.util.Collection<OsmPrimitive> formerValidatedPrimitives)Constructs a newValidationTaskValidationTask(java.util.function.Consumer<java.util.List<TestError>> onFinish, ProgressMonitor progressMonitor, java.util.Collection<Test> tests, java.util.Collection<OsmPrimitive> validatedPrimitives, java.util.Collection<OsmPrimitive> formerValidatedPrimitives, boolean beforeUpload)Constructs a newValidationTaskValidationTask(ProgressMonitor progressMonitor, java.util.Collection<Test> tests, java.util.Collection<OsmPrimitive> validatedPrimitives, java.util.Collection<OsmPrimitive> formerValidatedPrimitives) -
Uses of Test in org.openstreetmap.josm.data.validation.tests
Subclasses of Test in org.openstreetmap.josm.data.validation.tests Modifier and Type Class Description classAddressesPerforms validation tests on addresses (addr:housenumber) and associatedStreet relations.classApiCapabilitiesTestPerforms validation tests against OSM API capabilities.classBarriersEntrancesPerforms validation tests on barriers and entrances.classCoastlinesCheck coastlines for errorsclassConditionalKeysChecks for conditional restrictionsclassConnectivityRelationsCheck for inconsistencies in lane information between relation and members.classCrossingWaysTests if there are segments that crosses in the same layer/levelstatic classCrossingWays.BoundariesCrossing boundaries ways test.static classCrossingWays.SelfCrossingSelf crossing ways test (for all ways)static classCrossingWays.WaysGeneral crossing ways test.classCycleDetectorTest for detecting cycles in a directed graph, currently used for waterways only.classDirectionNodesFind nodes with direction tag and invalid number of parent ways or position in way.classDuplicatedWayNodesChecks for ways with identical consecutive nodes.classDuplicateNodeTests if there are duplicate nodesclassDuplicateRelationTests if there are duplicate relationsclassDuplicateWayTests if there are duplicate waysclassHighwaysTest that performs semantic checks on highways.classInternetTagsPerforms validation tests on internet-related tags (websites, e-mail addresses, etc.).classLanesTest that validateslane:tags.classLongSegmentChecks for very long segments.classMapCSSTagCheckerMapCSS-based tag checker/fixer.(package private) static classMapCSSTagChecker.MapCSSTagCheckerAndRuleclassMultipolygonTestChecks if multipolygons are validclassNameMismatchCheck for missing name:* translations.classOpeningHourTestTests the correct usage of the opening hour syntax of the tagsopening_hours,collection_times,service_timesaccording to OpeningHoursParser.classOverlappingWaysTests if there are overlapping ways.classPowerLinesChecks 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.classPublicTransportRouteTestTests for public transport routes.classRelationCheckerCheck for wrong relations.classRightAngleBuildingTestChecks for buildings with angles close to right angle.classSelfIntersectingWayChecks for self-intersecting ways.classSharpAnglesFind highways that have sharp anglesclassSimilarNamedWaysChecks for similar named ways, symptom of a possible typo.classTagCheckerCheck for misspelled or wrong tagsclassTurnrestrictionTestChecks if turn restrictions are validclassUnclosedWaysCheck area type ways for errorsclassUnconnectedWaysChecks if a way has an endpoint very near to another way.static classUnconnectedWays.UnconnectedHighwaysUnconnected highways test.static classUnconnectedWays.UnconnectedNaturalOrLanduseUnconnected natural/landuse test.static classUnconnectedWays.UnconnectedPowerUnconnected power ways test.static classUnconnectedWays.UnconnectedRailwaysUnconnected railways test.static classUnconnectedWays.UnconnectedWaterwaysUnconnected waterways test.classUntaggedNodeChecks for nodes with uninteresting tags that are in no wayclassUntaggedWayChecks for untagged waysclassWayConnectedToAreaChecks for ways connected to areas.classWronglyOrderedWaysCheck cyclic ways for errorsMethods in org.openstreetmap.josm.data.validation.tests with parameters of type Test Modifier and Type Method Description java.util.List<TestError>DuplicateNode. buildTestErrors(Test parentTest, java.util.List<Node> nodes)Returns the list of "duplicate nodes" errors for the given selection of node and parent test(package private) java.util.List<TestError>MapCSSTagCheckerRule. 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 Test Modifier and Type Field Description private java.util.Collection<Test>ValidatorTestsPreference. allTestsThe list of all tests
-