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