Package org.fcrepo.server.storage.translation

Source Code of org.fcrepo.server.storage.translation.TestMETSFedoraExt1_1DODeserializer

/* The contents of this file are subject to the license and copyright terms
* detailed in the license directory at the root of the source tree (also
* available online at http://fedora-commons.org/license/).
*/

package org.fcrepo.server.storage.translation;

import org.junit.Test;

import org.fcrepo.common.Models;
import org.fcrepo.server.storage.translation.METSFedoraExt1_1DODeserializer;
import org.fcrepo.server.storage.translation.METSFedoraExt1_1DOSerializer;


/**
* Unit tests for METSFedoraExt1_1DODeserializer.
*
* @author Chris Wilper
*/
public class TestMETSFedoraExt1_1DODeserializer
        extends TestMETSFedoraExtDODeserializer {

    public TestMETSFedoraExt1_1DODeserializer() {
        // superclass sets protected fields
        // m_deserializer and m_serializer as given below
        super(new METSFedoraExt1_1DODeserializer(),
              new METSFedoraExt1_1DOSerializer());
    }

    //---
    // Tests
    //---

    @Test
    public void testDeserializeSimpleCModelObject() {
        doSimpleTest(Models.CONTENT_MODEL_3_0);
    }

    // Supports legacy test runners
    public static junit.framework.Test suite() {
        return new junit.framework.JUnit4TestAdapter(TestMETSFedoraExt1_1DODeserializer.class);
    }

}
TOP

Related Classes of org.fcrepo.server.storage.translation.TestMETSFedoraExt1_1DODeserializer

TOP
Copyright © 2018 www.massapi.com. 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.