Mentions légales du service

Skip to content
Snippets Groups Projects
Commit bd2ae359 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- suppressed reliance on inexistent file in the file system

parent fb8de47b
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,7 @@ import org.xml.sax.SAXException; ...@@ -38,6 +38,7 @@ import org.xml.sax.SAXException;
import org.omwg.mediation.parser.rdf.RDFParserException; import org.omwg.mediation.parser.rdf.RDFParserException;
import fr.inrialpes.exmo.align.impl.BasicOntologyNetwork; import fr.inrialpes.exmo.align.impl.BasicOntologyNetwork;
import fr.inrialpes.exmo.align.impl.URIAlignment;
import fr.inrialpes.exmo.align.parser.AlignmentParser; import fr.inrialpes.exmo.align.parser.AlignmentParser;
import org.semanticweb.owl.align.Alignment; import org.semanticweb.owl.align.Alignment;
...@@ -81,7 +82,7 @@ public class OntologyNetworkTest { ...@@ -81,7 +82,7 @@ public class OntologyNetworkTest {
} }
@Test(groups = { "full", "noling" }, dependsOnMethods = {"ontologyTest"}) @Test(groups = { "full", "noling" }, dependsOnMethods = {"ontologyTest"})
public void alignmentTest() throws ParserConfigurationException, SAXException, IOException, RDFParserException, AlignmentException { public void alignmentTest() throws ParserConfigurationException, SAXException, IOException, URISyntaxException, RDFParserException, AlignmentException {
assertEquals( noo.getAlignments().size(), 0 ); assertEquals( noo.getAlignments().size(), 0 );
assertEquals( noo.getOntologies().size(), 2); assertEquals( noo.getOntologies().size(), 2);
// addAlignment // addAlignment
...@@ -89,7 +90,8 @@ public class OntologyNetworkTest { ...@@ -89,7 +90,8 @@ public class OntologyNetworkTest {
noo.addAlignment( al1 ); noo.addAlignment( al1 );
assertEquals( noo.getOntologies().size(), 4); assertEquals( noo.getOntologies().size(), 4);
// addAlignment // addAlignment
Alignment al2 = new AlignmentParser( 0 ).parse( "file:examples/rdf/srcalign.owl" ); Alignment al2 = new URIAlignment();
al2.init( al1.getOntology1URI(), al1.getOntology2URI() );
noo.addAlignment( al2 ); noo.addAlignment( al2 );
assertEquals( noo.getAlignments().size(), 2 ); assertEquals( noo.getAlignments().size(), 2 );
assertEquals( noo.getOntologies().size(), 4); assertEquals( noo.getOntologies().size(), 4);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment