001/*
002 * The contents of this file are subject to the license and copyright
003 * detailed in the LICENSE and NOTICE files at the root of the source
004 * tree.
005 */
006package org.fcrepo.kernel.api;
007
008import static org.apache.jena.vocabulary.DC_11.title;
009import static org.fcrepo.kernel.api.RdfLexicon.CREATED_BY;
010import static org.fcrepo.kernel.api.RdfLexicon.HAS_MESSAGE_DIGEST;
011import static org.fcrepo.kernel.api.RdfLexicon.isManagedPredicate;
012import static org.junit.Assert.assertFalse;
013import static org.junit.Assert.assertTrue;
014
015import org.junit.Test;
016
017/**
018 * <p>RdfLexiconTest class.</p>
019 *
020 * @author ajs6f
021 * @author whikloj
022 */
023public class RdfLexiconTest {
024
025    @Test
026    public void repoPredicatesAreManaged() {
027        assertTrue(isManagedPredicate.test(HAS_MESSAGE_DIGEST));
028        assertTrue(isManagedPredicate.test(CREATED_BY));
029    }
030    @Test
031    public void otherPredicatesAreNotManaged() {
032        assertFalse(isManagedPredicate.test(title));
033    }
034}