Class DcElementTest

    • Method Detail

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