Package org.fcrepo.common

Examples of org.fcrepo.common.PID


    /**
     * equals() should return false for lexically distinct PIDs.
     */
    @Test
    public void testEqualsDifferentPID() throws Exception {
        PID pid1 = PID.getInstance("test:somepid");
        PID pid2 = new PID("test:someotherpid");
        PID pid3 = PID.fromFilename("test_yetanotherpid");
        assertFalse(pid1.equals(pid2));
        assertFalse(pid2.equals(pid1));
        assertFalse(pid2.equals(pid3));
        assertFalse(pid3.equals(pid2));
    }
View Full Code Here

TOP

Related Classes of org.fcrepo.common.PID

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.