public abstract class AbstractParserHandlingTest extends Object
| Constructor and Description |
|---|
AbstractParserHandlingTest() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract InputStream |
getKnownDatatypeStream(Model knownDatatypeStatements) |
protected abstract InputStream |
getKnownLanguageStream(Model knownLanguageStatements) |
protected abstract RDFParser |
getParser() |
protected abstract InputStream |
getUnknownDatatypeStream(Model unknownDatatypeStatements)
Returns an
InputStream containing the given RDF statements in a
format that is recognised by the RDFParser returned by
getParser(). |
protected abstract InputStream |
getUnknownLanguageStream(Model unknownLanguageStatements) |
void |
setUp() |
void |
tearDown() |
void |
testKnownDatatypeNoMessageNoFailCase1()
Tests whether an known datatype with the default settings will both
generate no message and not fail.
|
void |
testKnownDatatypeNoMessageNoFailCase2()
Tests whether an known datatype with the default settings (using
ParserConfig.useDefaults()) will both generate no message and not
fail. |
void |
testKnownDatatypeNoMessageNoFailCase3()
Tests whether an known datatype with the correct settings will both
generate no message and not fail.
|
void |
testKnownDatatypeNoMessageNoFailCase4()
Tests whether an known datatype with the correct settings will both
generate no message and not fail when addNonFatalError is called with the
given setting.
|
void |
testKnownDatatypeNoMessageNoFailCase5()
Tests whether an known datatype with the correct settings will both
generate no message and not fail when setNonFatalError is called with an
empty set to reset the fatal errors
|
void |
testKnownDatatypeWithMessageNoFailCase1()
Tests whether an known datatype with the message no fail.
|
void |
testKnownDatatypeWithMessageNoFailCase2()
Tests whether an known datatype with the message no fail.
|
void |
testKnownDatatypeWithMessageNoFailCase3()
Tests whether an known datatype with the message no fail.
|
void |
testKnownDatatypeWithMessageWhereUnknownWouldFailCase1()
Tests whether an known datatype with the message which generates a failure
if the datatype is unknown.
|
void |
testKnownLanguageNoMessageNoFailCase1()
Tests whether an known language with the default settings will both
generate no message and not fail.
|
void |
testKnownLanguageNoMessageNoFailCase2()
Tests whether an known language with the default settings (using
ParserConfig.useDefaults()) will both generate no message and not
fail. |
void |
testKnownLanguageNoMessageNoFailCase3()
Tests whether an known language with the correct settings will both
generate no message and not fail.
|
void |
testKnownLanguageNoMessageNoFailCase4()
Tests whether an known language with the correct settings will both
generate no message and not fail when addNonFatalError is called with the
given setting.
|
void |
testKnownLanguageNoMessageNoFailCase5()
Tests whether an known language with the correct settings will both
generate no message and not fail when setNonFatalError is called with an
empty set to reset the fatal errors
|
void |
testKnownLanguageWithMessageNoFailCase1()
Tests whether an known language with the message no fail.
|
void |
testKnownLanguageWithMessageNoFailCase2()
Tests whether an known language with the message no fail.
|
void |
testKnownLanguageWithMessageNoFailCase3()
Tests whether an known language with the message no fail.
|
void |
testKnownLanguageWithMessageWhereUnknownWouldFailCase1()
Tests whether an known language with the message which generates a failure
if the language is unknown.
|
void |
testUnknownDatatypeNoMessageNoFailCase1()
Tests whether an unknown datatype with the default settings will both
generate no message and not fail.
|
void |
testUnknownDatatypeNoMessageNoFailCase2()
Tests whether an unknown datatype with the default settings (using
ParserConfig.useDefaults()) will both generate no message and not
fail. |
void |
testUnknownDatatypeNoMessageNoFailCase3()
Tests whether an unknown datatype with the correct settings will both
generate no message and not fail.
|
void |
testUnknownDatatypeNoMessageNoFailCase4()
Tests whether an unknown datatype with the correct settings will both
generate no message and not fail when addNonFatalError is called with the
given setting.
|
void |
testUnknownDatatypeNoMessageNoFailCase5()
Tests whether an unknown datatype with the correct settings will both
generate no message and not fail when setNonFatalError is called with an
empty set to reset the fatal errors
|
void |
testUnknownDatatypeWithMessageNoFailCase1()
Tests whether an unknown datatype with the message no fail.
|
void |
testUnknownDatatypeWithMessageNoFailCase2()
Tests whether an unknown datatype with the message no fail.
|
void |
testUnknownDatatypeWithMessageNoFailCase3()
Tests whether an unknown datatype with the message no fail.
|
void |
testUnknownDatatypeWithMessageWithFailCase1()
Tests whether an unknown datatype with the message and with a failure.
|
void |
testUnknownLanguageNoMessageNoFailCase1()
Tests whether an unknown language with the default settings will both
generate no message and not fail.
|
void |
testUnknownLanguageNoMessageNoFailCase2()
Tests whether an unknown language with the default settings (using
ParserConfig.useDefaults()) will both generate no message and not
fail. |
void |
testUnknownLanguageNoMessageNoFailCase3()
Tests whether an unknown language with the correct settings will both
generate no message and not fail.
|
void |
testUnknownLanguageNoMessageNoFailCase4()
Tests whether an unknown language with the correct settings will both
generate no message and not fail when addNonFatalError is called with the
given setting.
|
void |
testUnknownLanguageNoMessageNoFailCase5()
Tests whether an unknown language with the correct settings will both
generate no message and not fail when setNonFatalError is called with an
empty set to reset the fatal errors
|
void |
testUnknownLanguageWithMessageNoFailCase1()
Tests whether an unknown language with the message no fail.
|
void |
testUnknownLanguageWithMessageNoFailCase2()
Tests whether an unknown language with the message no fail.
|
void |
testUnknownLanguageWithMessageNoFailCase3()
Tests whether an unknown language with the message no fail.
|
void |
testUnknownLanguageWithMessageWithFailCase1()
Tests whether an unknown language with the message and with a failure.
|
protected abstract InputStream getUnknownDatatypeStream(Model unknownDatatypeStatements) throws Exception
InputStream containing the given RDF statements in a
format that is recognised by the RDFParser returned by
getParser().protected abstract InputStream getKnownDatatypeStream(Model knownDatatypeStatements) throws Exception
Exceptionprotected abstract InputStream getUnknownLanguageStream(Model unknownLanguageStatements) throws Exception
Exceptionprotected abstract InputStream getKnownLanguageStream(Model knownLanguageStatements) throws Exception
Exceptionprotected abstract RDFParser getParser()
public final void testUnknownDatatypeNoMessageNoFailCase1()
throws Exception
Exceptionpublic final void testUnknownDatatypeNoMessageNoFailCase2()
throws Exception
ParserConfig.useDefaults()) will both generate no message and not
fail.Exceptionpublic final void testUnknownDatatypeNoMessageNoFailCase3()
throws Exception
Exceptionpublic final void testUnknownDatatypeNoMessageNoFailCase4()
throws Exception
Exceptionpublic final void testUnknownDatatypeNoMessageNoFailCase5()
throws Exception
Exceptionpublic final void testUnknownDatatypeWithMessageNoFailCase1()
throws Exception
Exceptionpublic final void testUnknownDatatypeWithMessageNoFailCase2()
throws Exception
Exceptionpublic final void testUnknownDatatypeWithMessageNoFailCase3()
throws Exception
Exceptionpublic final void testUnknownDatatypeWithMessageWithFailCase1()
throws Exception
Exceptionpublic final void testKnownDatatypeNoMessageNoFailCase1()
throws Exception
Exceptionpublic final void testKnownDatatypeNoMessageNoFailCase2()
throws Exception
ParserConfig.useDefaults()) will both generate no message and not
fail.Exceptionpublic final void testKnownDatatypeNoMessageNoFailCase3()
throws Exception
Exceptionpublic final void testKnownDatatypeNoMessageNoFailCase4()
throws Exception
Exceptionpublic final void testKnownDatatypeNoMessageNoFailCase5()
throws Exception
Exceptionpublic final void testKnownDatatypeWithMessageNoFailCase1()
throws Exception
Exceptionpublic final void testKnownDatatypeWithMessageNoFailCase2()
throws Exception
Exceptionpublic final void testKnownDatatypeWithMessageNoFailCase3()
throws Exception
Exceptionpublic final void testKnownDatatypeWithMessageWhereUnknownWouldFailCase1()
throws Exception
Exceptionpublic final void testUnknownLanguageNoMessageNoFailCase1()
throws Exception
Exceptionpublic final void testUnknownLanguageNoMessageNoFailCase2()
throws Exception
ParserConfig.useDefaults()) will both generate no message and not
fail.Exceptionpublic final void testUnknownLanguageNoMessageNoFailCase3()
throws Exception
Exceptionpublic final void testUnknownLanguageNoMessageNoFailCase4()
throws Exception
Exceptionpublic final void testUnknownLanguageNoMessageNoFailCase5()
throws Exception
Exceptionpublic final void testUnknownLanguageWithMessageNoFailCase1()
throws Exception
Exceptionpublic final void testUnknownLanguageWithMessageNoFailCase2()
throws Exception
Exceptionpublic final void testUnknownLanguageWithMessageNoFailCase3()
throws Exception
Exceptionpublic final void testUnknownLanguageWithMessageWithFailCase1()
throws Exception
Exceptionpublic final void testKnownLanguageNoMessageNoFailCase1()
throws Exception
Exceptionpublic final void testKnownLanguageNoMessageNoFailCase2()
throws Exception
ParserConfig.useDefaults()) will both generate no message and not
fail.Exceptionpublic final void testKnownLanguageNoMessageNoFailCase3()
throws Exception
Exceptionpublic final void testKnownLanguageNoMessageNoFailCase4()
throws Exception
Exceptionpublic final void testKnownLanguageNoMessageNoFailCase5()
throws Exception
Exceptionpublic final void testKnownLanguageWithMessageNoFailCase1()
throws Exception
Exceptionpublic final void testKnownLanguageWithMessageNoFailCase2()
throws Exception
Exceptionpublic final void testKnownLanguageWithMessageNoFailCase3()
throws Exception
ExceptionCopyright © 2001–2015 Aduna. All rights reserved.