Package org.gbif.dwc.terms
Class DcElementTest
- java.lang.Object
-
- org.gbif.dwc.terms.DcElementTest
-
public class DcElementTest extends Object
-
-
Constructor Summary
Constructors Constructor Description DcElementTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testFindTermWithDcPrefix()
There are 15 terms in DcElement that share the same name with DcTerm elements.void
testFindTermWithValidNamespace()
A lookup for "http://purl.org/dc/elements/1.1/rights" shouldn't return "http://purl.org/dc/terms/rights"void
testNames()
void
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.
-
-
-
Constructor Detail
-
DcElementTest
public DcElementTest()
-
-
Method Detail
-
testNames
@Test public void testNames()
-
testTermEquality
@Test public void 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
@Test public void testFindTermWithValidNamespace()
A lookup for "http://purl.org/dc/elements/1.1/rights" shouldn't return "http://purl.org/dc/terms/rights"
-
testFindTermWithDcPrefix
@Test public void 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.
-
-