Class DcTermTest

    • Method Detail

      • 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.