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 class
Test.TagTest
A 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 Test
TestError.Builder. tester
private Test
TestError. tester
The tester that raised this errorFields in org.openstreetmap.josm.data.validation with type parameters of type Test Modifier and Type Field Description private static Collection<Class<? extends Test>>
OsmValidator. allTests
All registered testsprivate static Map<String,Test>
OsmValidator. allTestsMap
private Collection<Test>
ValidationTask. tests
Methods in org.openstreetmap.josm.data.validation with type parameters of type Test Modifier and Type Method Description static <T extends Test>
TOsmValidator. getTest(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 Test
TestError. 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 Collection<Class<? extends Test>>
OsmValidator. getAllAvailableTestClasses()
Gets the list of all available test classesstatic SortedMap<String,Test>
OsmValidator. 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 Test Modifier and Type Method Description static TestError.Builder
TestError. builder(Test tester, Severity severity, int code)
Starts building a newTestError
Method parameters in org.openstreetmap.josm.data.validation with type arguments of type Test Modifier and Type Method Description static void
OsmValidator. addTest(Class<? extends Test> testClass)
Adds a test to the list of available testsprivate static void
OsmValidator. applyPrefs(Map<String,Test> tests, boolean beforeUpload)
static void
OsmValidator. initializeTests(Collection<? extends Test> allTests)
Initializes all testsstatic boolean
OsmValidator. removeTest(Class<? extends Test> testClass)
Removes a test from the list of available tests.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(Collection<Test> tests, Collection<OsmPrimitive> validatedPrimitives, Collection<OsmPrimitive> formerValidatedPrimitives)
Constructs a newValidationTask
ValidationTask(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.tests Modifier and Type Class Description class
Addresses
Performs validation tests on addresses (addr:housenumber) and associatedStreet relations.class
ApiCapabilitiesTest
Performs validation tests against OSM API capabilities.class
BarriersEntrances
Performs validation tests on barriers and entrances.class
Coastlines
Check coastlines for errorsclass
ConditionalKeys
Checks for conditional restrictionsclass
ConnectivityRelations
Check for inconsistencies in lane information between relation and members.class
CrossingWays
Tests if there are segments that crosses in the same layer/levelstatic class
CrossingWays.Boundaries
Crossing boundaries ways test.static class
CrossingWays.SelfCrossing
Self crossing ways test (for all ways)static class
CrossingWays.Ways
General crossing ways test.class
DirectionNodes
Find nodes with direction tag and invalid number of parent ways or position in way.class
DuplicatedWayNodes
Checks for ways with identical consecutive nodes.class
DuplicateNode
Tests if there are duplicate nodesclass
DuplicateRelation
Tests if there are duplicate relationsclass
DuplicateWay
Tests if there are duplicate waysclass
Highways
Test that performs semantic checks on highways.class
InternetTags
Performs validation tests on internet-related tags (websites, e-mail addresses, etc.).class
Lanes
Test that validateslane:
tags.class
LongSegment
Checks for very long segments.class
MapCSSTagChecker
MapCSS-based tag checker/fixer.(package private) static class
MapCSSTagChecker.MapCSSTagCheckerAndRule
class
MultipolygonTest
Checks if multipolygons are validclass
NameMismatch
Check for missing name:* translations.class
OpeningHourTest
Tests the correct usage of the opening hour syntax of the tagsopening_hours
,collection_times
,service_times
according to OpeningHoursParser.class
OverlappingWays
Tests if there are overlapping ways.class
PowerLines
Checks for nodes in power lines/minor_lines that do not have a power=tower/pole tag.
See #7812 for discussions about this test.class
PublicTransportRouteTest
Tests for public transport routes.class
RelationChecker
Check for wrong relations.class
RightAngleBuildingTest
Checks for buildings with angles close to right angle.class
SelfIntersectingWay
Checks for self-intersecting ways.class
SharpAngles
Find highways that have sharp anglesclass
SimilarNamedWays
Checks for similar named ways, symptom of a possible typo.class
TagChecker
Check for misspelled or wrong tagsclass
TurnrestrictionTest
Checks if turn restrictions are validclass
UnclosedWays
Check area type ways for errorsclass
UnconnectedWays
Checks if a way has an endpoint very near to another way.static class
UnconnectedWays.UnconnectedHighways
Unconnected highways test.static class
UnconnectedWays.UnconnectedNaturalOrLanduse
Unconnected natural/landuse test.static class
UnconnectedWays.UnconnectedPower
Unconnected power ways test.static class
UnconnectedWays.UnconnectedRailways
Unconnected railways test.static class
UnconnectedWays.UnconnectedWaterways
Unconnected waterways test.class
UntaggedNode
Checks for nodes with uninteresting tags that are in no wayclass
UntaggedWay
Checks for untagged waysclass
WayConnectedToArea
Checks for ways connected to areas.class
WronglyOrderedWays
Check cyclic ways for errorsMethods in org.openstreetmap.josm.data.validation.tests with parameters of type Test Modifier and Type Method Description List<TestError>
DuplicateNode. buildTestErrors(Test parentTest, List<Node> nodes)
Returns the list of "duplicate nodes" errors for the given selection of node and parent test(package private) List<TestError>
MapCSSTagCheckerRule. getErrorsForPrimitive(OsmPrimitive p, Selector matchingSelector, Environment env, Test tester)
Constructs aTestError
for 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 Collection<Test>
ValidatorTestsPreference. allTests
The list of all tests
-