Package org.gbif.dwc.terms
Class DcTermTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThere are 15 terms in DcElement that share the same name with DcTerm elements.voidThere are 15 terms in DcElement that share the same name with DcTerm elements.voidThere are 15 terms in DcElement that share the same name with DcTerm elements.voidA lookup for "http://purl.org/dc/terms/rights" shouldn't return "http://purl.org/dc/elements/1.1/rights".voidvoidTest that iterates over all DcTerm values and uses the simple name alone as input to the factory and then verifies the Term returned is the same as the original one.Methods inherited from class org.gbif.dwc.terms.TermBaseTest
testFindPrefixedTerms, testFindQualifiedTerm, testFindSimpleTerm
-
Constructor Details
-
DcTermTest
public DcTermTest()
-
-
Method Details
-
testNames
- Overrides:
testNamesin classTermBaseTest<DcTerm>
-
testTermEquality
Test that iterates over all DcTerm values and uses the simple name alone as input to the factory and then verifies the Term returned is the same as the original one. -
testFindTermWithValidNamespace
A lookup for "http://purl.org/dc/terms/rights" shouldn't return "http://purl.org/dc/elements/1.1/rights". -
testFindTermWithNoNamespaceAndNoPrefix
There are 15 terms in DcElement that share the same name with DcTerm elements. This test ensures, that when a term lookup is done with the simple name only (no prefix, no namespace), the DcTerm under the /terms namespace is returned, not the DcElement under the /elements/1.1/rights namespace. -
testFindTermWithDctermsPrefix
There are 15 terms in DcElement that share the same name with DcTerm elements. This test ensures, that when a term lookup is done with the prefix "dcterms", the DcTerm under the /terms namespace is returned, not the DcElements term under the /elements/1.1/ namespace. -
testFindTermWithDctPrefix
There are 15 terms in DcElement that share the same name with DcTerm elements. This test ensures, that when a term lookup is done with the prefix "dct", the DcTerm under the /terms namespace is returned, not the DcElements term under the /elements/1.1/ namespace.
-