Package org.obolibrary.obo2owl

Source Code of org.obolibrary.obo2owl.RoundTripLabeledXrefsTest

package org.obolibrary.obo2owl;

import static org.junit.Assert.assertEquals;

import java.util.List;

import org.junit.Test;
import org.obolibrary.oboformat.diff.Diff;
import org.obolibrary.oboformat.diff.OBODocDiffer;
import org.obolibrary.oboformat.model.OBODoc;

@SuppressWarnings("javadoc")
public class RoundTripLabeledXrefsTest extends RoundTripTest {

    @Test
    public void testRoundTrip() throws Exception {
        OBODoc source = parseOBOFile("labeled_xrefs.obo");
        String written = renderOboToString(source);
        OBODoc parsed = parseOboToString(written);
        List<Diff> diffs = OBODocDiffer.getDiffs(source, parsed);
        assertEquals(0, diffs.size());
    }
}
TOP

Related Classes of org.obolibrary.obo2owl.RoundTripLabeledXrefsTest

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.