Package org.obolibrary.obo2owl

Source Code of org.obolibrary.obo2owl.RoundTripXrefescapecolonTest

package org.obolibrary.obo2owl;

import static org.junit.Assert.assertEquals;

import javax.annotation.Nonnull;

import org.junit.Test;
import org.obolibrary.oboformat.model.OBODoc;
import org.semanticweb.owlapi.model.IRI;
import org.semanticweb.owlapi.model.OWLOntology;

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

    @Nonnull
    String file = "xref_escapecolon.obo";

    @Test
    public void testRoundTrip() throws Exception {
        roundTripOBOFile(file, true);
    }

    @Test
    public void shouldContainExpectedAnnotation() {
        OBODoc oboFile = parseOBOFile(file);
        OWLOntology o = convert(oboFile);
        IRI expected = IRI
                .create("http://purl.obolibrary.org/obo/GO_0042062%3A");
        assertEquals(18, o.getAnnotationAssertionAxioms(expected).size());
    }
}
TOP

Related Classes of org.obolibrary.obo2owl.RoundTripXrefescapecolonTest

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.