Package org.gbif.dwc.terms
Class DcElementTest
java.lang.Object
org.gbif.dwc.terms.DcElementTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThere are 15 terms in DcElement that share the same name with DcTerm elements.voidA lookup for "http://purl.org/dc/elements/1.1/rights" shouldn't return "http://purl.org/dc/terms/rights"voidvoidTest that iterates over all DcElement values and uses the qualified name alone as input to the factory and then verifies the Term returned is the same as the original one.
-
Constructor Details
-
DcElementTest
public DcElementTest()
-
-
Method Details
-
testNames
-
testTermEquality
Test that iterates over all DcElement values and uses the qualified 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/elements/1.1/rights" shouldn't return "http://purl.org/dc/terms/rights" -
testFindTermWithDcPrefix
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 "dc", the DcElement under the /elements/1.1/ namespace is returned, not the DcTerm under the /terms namespace.
-