locationtech / udig-platform

uDig parent project containing all core components. More plugins can be found in community repos: http://github.com/uDig-Community
http://udig.refractions.net
190 stars 133 forks source link

F hk catalog impl tests #679

Closed fgdrf closed 2 years ago

fgdrf commented 2 years ago

additional test module (org.locationtech.udig.catalog.test2) for catalog that is a fragment to the host bundle org.locationtech.udig.catalog which allows to test internal packages and has access to protected methods.

from build-action output:

[..]
Running org.locationtech.udig.catalog.internal.CatalogImplTest
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.029 s - in org.locationtech.udig.catalog.internal.CatalogImplTest
checkIsTrueIfServiceInfoAbstractMatch(org.locationtech.udig.catalog.internal.CatalogImplTest)  Time elapsed: 0.016 s
checkIsTrueIfResourceInfoNameMatch(org.locationtech.udig.catalog.internal.CatalogImplTest)  Time elapsed: 0.004 s
checkIsFalseWithNullService(org.locationtech.udig.catalog.internal.CatalogImplTest)  Time elapsed: 0 s
checkIsTrueIfServiceInfoDescriptionMatch(org.locationtech.udig.catalog.internal.CatalogImplTest)  Time elapsed: 0.002 s
checkIsTrueIfServiceInfoKeywordsMatch(org.locationtech.udig.catalog.internal.CatalogImplTest)  Time elapsed: 0.001 s
checkIsTrueIfResourceInfoTitleMatch(org.locationtech.udig.catalog.internal.CatalogImplTest)  Time elapsed: 0 s
checkIsTrueIfServiceInfoWithNullKeywordInSetMatch(org.locationtech.udig.catalog.internal.CatalogImplTest)  Time elapsed: 0.001 s
checkIsTrueIfResourceInfoAtLeastOneKeywordMatch(org.locationtech.udig.catalog.internal.CatalogImplTest)  Time elapsed: 0.002 s
checkIsFalseIfNothingMatches(org.locationtech.udig.catalog.internal.CatalogImplTest)  Time elapsed: 0.001 s
checkIsTrueIfServiceInfoTitleMatch(org.locationtech.udig.catalog.internal.CatalogImplTest)  Time elapsed: 0 s
checkIsFalseWithServiceAndNullPattern(org.locationtech.udig.catalog.internal.CatalogImplTest)  Time elapsed: 0 s
checkIsTrueIfSchemaUriMatch(org.locationtech.udig.catalog.internal.CatalogImplTest)  Time elapsed: 0.003 s
checkIsFalseWithGeoResource(org.locationtech.udig.catalog.internal.CatalogImplTest)  Time elapsed: 0 s
checkIsTrueIfResourceInfoDescriptionMatch(org.locationtech.udig.catalog.internal.CatalogImplTest)  Time elapsed: 0.004 s
checkIsFalseIfServiceNotMatchAnything(org.locationtech.udig.catalog.internal.CatalogImplTest)  Time elapsed: 0.004 s
checkIsTrueWithGeoResourceAndNullPattern(org.locationtech.udig.catalog.internal.CatalogImplTest)  Time elapsed: 0 s

Results:

Tests run: 16, Failures: 0, Errors: 0, Skipped: 0

[INFO] All tests passed!
[..]
fgdrf commented 2 years ago

@olsmn @sschulz92 increases test coverage and with it it explains a bit what the SearchView searches for :)

What do you think?