|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fzi.kadmos.parser.impl.INRIAFormatParserTest
public class INRIAFormatParserTest
Test class for the INRIAFormatParser
.
Constructor Summary | |
---|---|
INRIAFormatParserTest()
|
Method Summary | |
---|---|
void |
resetParserBeforeTest()
Resets the parser before a test |
void |
testCorrectAlignmentFactory()
If an AlignmentFactory is set, the parser should produce
Alignment s of the type, the factory creates. |
void |
testCorrectCorrespondenceFactory()
If a CorrespondenceFactory is set, the parser should produce
Correspondence s of the type, the factory generates. |
void |
testDocumentNoOntologies()
If an XML-String with invalid root element is given to the parser an AlignmentParserException is thrown. |
void |
testDocumentNoRoot()
If an XML-String with no root element is given to the parser an AlignmentParserException is thrown. |
void |
testDocumentNotWellFormed()
If a non-well-formed XML-String is given as input to the parser, an AlignmentParserException is thrown. |
void |
testInstanceCaching()
If two instances are requested using the same Reader ,
the same AlignmentParser instance is provided. |
void |
testMissingOntologySetOntologyInputStream()
No locations for the ontologies are provided in the parsing document. |
void |
testMissingOntologySetOntologyOWLOntology()
No locations for the ontologies are provided in the parsing document. |
void |
testMissingOntologySetOntologyURL()
No locations for the ontologies are provided in the parsing document. |
void |
testParseAlignmentParserExceptionLevelONE()
If an Alignment contains OWLEntities with IRIs contained in XML-String an AlignmentParserException is thrown. |
void |
testParseAlignmentParserExceptionLEVELTHREE()
If an Alignment contains OWLEntities with IRIs contained in XML-String an AlignmentParserException is thrown. |
void |
testParseAlignmentParserExceptionLEVELTWO()
If an Alignment contains OWLEntities with IRIs contained in XML-String an AlignmentParserException is thrown. |
void |
testParseContainsIRI()
If an Alignment contains OWLEntities with IRIs contained in XML-String an AlignmentParserException is thrown. |
void |
testParseFile()
If an XML-String with no root element is given to the parser an AlignmentParserException is thrown. |
void |
testParseHasOWLOntologies()
If an Alignment contains OWLOntologies contained in XML-String an AlignmentParserException is thrown. |
void |
testParseIncompatibleEntityTypesExceptionLevelONE()
If a correspondence contains entites of different type and parsing level = 1 an AlignmentParserException is thrown. |
void |
testParseIncompatibleEntityTypesExceptionLEVELTHREE()
If a correspondence contains entites of different type and parsing level = 3 an AlignmentParserException is thrown. |
void |
testParseIncompatibleEntityTypesExceptionLEVELTWO()
If a correspondence contains entites of different type and parsing level = 2 an AlignmentParserException is thrown. |
void |
testParseInputSourceFromReader()
If an XML-String with no root element is given to the parser an AlignmentParserException is thrown. |
void |
testParseInputStream()
If an XML-String with no root element is given to the parser an AlignmentParserException is thrown. |
void |
testParseMultiplicityExceptionLevelONE()
If an Alignment contains OWLEntities with IRIs contained in XML-String an AlignmentParserException is thrown. |
void |
testParseMultiplicityExceptionLEVELTHREE()
If an Alignment contains OWLEntities with IRIs contained in XML-String an AlignmentParserException is thrown. |
void |
testParseMultiplicityExceptionLEVELTWO()
If an Alignment contains OWLEntities with IRIs contained in XML-String an AlignmentParserException is thrown. |
void |
testParseParseRenderParse()
If an Alignment contains OWLEntities with IRIs contained in XML-String an AlignmentParserException is thrown. |
void |
testParseReader()
If an XML-String with no root element is given to the parser an AlignmentParserException is thrown. |
void |
testParseStringAbsolutePath()
If an XML-String with no root element is given to the parser an AlignmentParserException is thrown. |
void |
testParseStringURI()
If an XML-String with no root element is given to the parser an AlignmentParserException is thrown. |
void |
testParseTwiceDifferentReader()
If a parser is invoked twice with different readers, the parser should do the job twice without complaining. |
void |
testParseTwiceOneReader()
If a parser is invoked twice with the same reader, the second call should throw exception |
void |
testParseURL()
If an XML-String with no root element is given to the parser an AlignmentParserException is thrown. |
void |
testRealAlignmentNoLocation()
An alignment of ontologies where no physical URL is given is parsed. |
void |
testRealAlignmentWithLocation()
An alignment of ontologies where a physical URL is given is parsed. |
void |
testUnresolvableLocationOntologySetOntologyOWLOntology()
The ontologies in the document to be parsed are provided but have unresolvable locations. |
void |
testValidOntologySetOntologyOWLOntology()
Resovable locations for the ontologies are provided in the document to be parsed. |
static void |
updateAlignmentAbsolutePath()
Updates absolute paths in alignment |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public INRIAFormatParserTest()
Method Detail |
---|
public static void updateAlignmentAbsolutePath()
public void resetParserBeforeTest()
public final void testInstanceCaching() throws Exception
Reader
,
the same AlignmentParser
instance is provided. If
different Reader
s are used, different instances
are provided.
Exception
public final void testDocumentNotWellFormed() throws Exception
AlignmentParserException
is thrown.
Exception
public final void testDocumentNoRoot() throws Exception
AlignmentParserException
is thrown.
Exception
public final void testDocumentNoOntologies() throws Exception
AlignmentParserException
is thrown.
Exception
public final void testParseFile() throws Exception
AlignmentParserException
is thrown.
Exception
public final void testParseStringURI() throws Exception
AlignmentParserException
is thrown.
Exception
public final void testParseStringAbsolutePath() throws Exception
AlignmentParserException
is thrown.
Exception
public final void testParseURL() throws Exception
AlignmentParserException
is thrown.
Exception
public final void testParseReader() throws Exception
AlignmentParserException
is thrown.
Exception
public final void testParseTwiceOneReader() throws Exception
Exception
public final void testParseTwiceDifferentReader() throws Exception
Exception
public final void testParseInputStream() throws Exception
AlignmentParserException
is thrown.
Exception
public final void testParseInputSourceFromReader() throws Exception
AlignmentParserException
is thrown.
Exception
public final void testCorrectAlignmentFactory() throws Exception
AlignmentFactory
is set, the parser should produce
Alignment
s of the type, the factory creates.
If the AlignmentFactory
is set to a different factory, the parser
should consequently produce Alignment
s of the type, that
new factory creates.
Exception
public final void testCorrectCorrespondenceFactory() throws Exception
CorrespondenceFactory
is set, the parser should produce
Correspondence
s of the type, the factory generates.
If the CorrespondenceFactory
is set to a different factory,
the parser should consequently produce Correspondence
s of the type,
that new factory creates.
Exception
public final void testParseHasOWLOntologies() throws Exception
AlignmentParserException
is thrown.
Exception
public final void testParseContainsIRI() throws Exception
AlignmentParserException
is thrown.
Exception
public final void testParseAlignmentParserExceptionLevelONE() throws Exception
AlignmentParserException
is thrown.
Exception
public final void testParseAlignmentParserExceptionLEVELTWO() throws Exception
AlignmentParserException
is thrown.
Exception
public final void testParseAlignmentParserExceptionLEVELTHREE() throws Exception
AlignmentParserException
is thrown.
Exception
public final void testParseMultiplicityExceptionLevelONE() throws Exception
AlignmentParserException
is thrown.
Exception
public final void testParseMultiplicityExceptionLEVELTWO() throws Exception
AlignmentParserException
is thrown.
Exception
public final void testParseMultiplicityExceptionLEVELTHREE() throws Exception
AlignmentParserException
is thrown.
Exception
public final void testParseIncompatibleEntityTypesExceptionLevelONE() throws Exception
AlignmentParserException
is thrown.
Exception
public final void testParseIncompatibleEntityTypesExceptionLEVELTWO() throws Exception
AlignmentParserException
is thrown.
Exception
public final void testParseIncompatibleEntityTypesExceptionLEVELTHREE() throws Exception
AlignmentParserException
is thrown.
Exception
public final void testParseParseRenderParse() throws Exception
AlignmentParserException
is thrown.
Exception
public final void testRealAlignmentNoLocation() throws Exception
Exception
public final void testRealAlignmentWithLocation() throws Exception
Exception
public final void testMissingOntologySetOntologyOWLOntology() throws Exception
Exception
public final void testMissingOntologySetOntologyURL() throws Exception
Exception
public final void testMissingOntologySetOntologyInputStream() throws Exception
Exception
public final void testValidOntologySetOntologyOWLOntology() throws Exception
Exception
public final void testUnresolvableLocationOntologySetOntologyOWLOntology() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |