Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Alignment API
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
moex
Alignment API
Commits
317fcb0c
Commit
317fcb0c
authored
15 years ago
by
Jérôme Euzenat
Browse files
Options
Downloads
Patches
Plain Diff
- moved to IOTest
parent
2af57779
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/src/IOTests.java
+0
-71
0 additions, 71 deletions
test/src/IOTests.java
with
0 additions
and
71 deletions
test/src/IOTests.java
deleted
100644 → 0
+
0
−
71
View file @
2af57779
/*
* $Id$
*
* Copyright (C) INRIA, 2008-2010
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
import
static
org
.
testng
.
Assert
.
assertEquals
;
import
static
org
.
testng
.
Assert
.
assertNotNull
;
import
static
org
.
testng
.
Assert
.
assertNull
;
import
static
org
.
testng
.
Assert
.
assertTrue
;
import
org.testng.annotations.BeforeClass
;
import
org.testng.annotations.Configuration
;
import
org.testng.annotations.Test
;
//import org.testng.annotations.*;
import
org.semanticweb.owl.align.AlignmentVisitor
;
import
org.semanticweb.owl.align.AlignmentException
;
import
org.semanticweb.owl.align.Alignment
;
import
fr.inrialpes.exmo.align.parser.AlignmentParser
;
import
fr.inrialpes.exmo.align.impl.URIAlignment
;
import
fr.inrialpes.exmo.ontowrap.Ontology
;
import
java.io.ByteArrayOutputStream
;
import
java.io.PrintWriter
;
import
java.io.BufferedWriter
;
import
java.io.OutputStreamWriter
;
import
java.io.FileOutputStream
;
/**
* These tests corresponds to the tests presented in the examples/omwg directory
*/
public
class
IOTests
{
private
Alignment
alignment
=
null
;
private
AlignmentParser
aparser
=
null
;
@Test
(
groups
=
{
"full"
,
"io"
,
"raw"
},
expectedExceptions
=
AlignmentException
.
class
)
public
void
loadSOAPErrorTest
()
throws
Exception
{
aparser
=
new
AlignmentParser
(
0
);
assertNotNull
(
aparser
);
alignment
=
aparser
.
parse
(
"test/input/soap.xml"
);
// error (we forgot to tell the parser that the alignment is embedded)
}
@Test
(
groups
=
{
"full"
,
"io"
,
"raw"
},
dependsOnMethods
=
{
"loadSOAPErrorTest"
})
public
void
loadSOAPTest
()
throws
Exception
{
aparser
.
initAlignment
(
null
);
aparser
.
setEmbedded
(
true
);
alignment
=
aparser
.
parse
(
"test/input/soap.xml"
);
assertNotNull
(
alignment
);
assertTrue
(
alignment
instanceof
URIAlignment
);
assertEquals
(
alignment
.
getOntology2URI
().
toString
(),
"http://alignapi.gforge.inria.fr/tutorial/edu.mit.visus.bibtex.owl"
);
assertEquals
(
alignment
.
nbCells
(),
57
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment