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
Exception
protected abstract InputStream getUnknownLanguageStream(Model unknownLanguageStatements) throws Exception
Exception
protected abstract InputStream getKnownLanguageStream(Model knownLanguageStatements) throws Exception
Exception
protected abstract RDFParser getParser()
public final void testUnknownDatatypeNoMessageNoFailCase1() throws Exception
Exception
public final void testUnknownDatatypeNoMessageNoFailCase2() throws Exception
ParserConfig.useDefaults()
) will both generate no message and not
fail.Exception
public final void testUnknownDatatypeNoMessageNoFailCase3() throws Exception
Exception
public final void testUnknownDatatypeNoMessageNoFailCase4() throws Exception
Exception
public final void testUnknownDatatypeNoMessageNoFailCase5() throws Exception
Exception
public final void testUnknownDatatypeWithMessageNoFailCase1() throws Exception
Exception
public final void testUnknownDatatypeWithMessageNoFailCase2() throws Exception
Exception
public final void testUnknownDatatypeWithMessageNoFailCase3() throws Exception
Exception
public final void testUnknownDatatypeWithMessageWithFailCase1() throws Exception
Exception
public final void testKnownDatatypeNoMessageNoFailCase1() throws Exception
Exception
public final void testKnownDatatypeNoMessageNoFailCase2() throws Exception
ParserConfig.useDefaults()
) will both generate no message and not
fail.Exception
public final void testKnownDatatypeNoMessageNoFailCase3() throws Exception
Exception
public final void testKnownDatatypeNoMessageNoFailCase4() throws Exception
Exception
public final void testKnownDatatypeNoMessageNoFailCase5() throws Exception
Exception
public final void testKnownDatatypeWithMessageNoFailCase1() throws Exception
Exception
public final void testKnownDatatypeWithMessageNoFailCase2() throws Exception
Exception
public final void testKnownDatatypeWithMessageNoFailCase3() throws Exception
Exception
public final void testKnownDatatypeWithMessageWhereUnknownWouldFailCase1() throws Exception
Exception
public final void testUnknownLanguageNoMessageNoFailCase1() throws Exception
Exception
public final void testUnknownLanguageNoMessageNoFailCase2() throws Exception
ParserConfig.useDefaults()
) will both generate no message and not
fail.Exception
public final void testUnknownLanguageNoMessageNoFailCase3() throws Exception
Exception
public final void testUnknownLanguageNoMessageNoFailCase4() throws Exception
Exception
public final void testUnknownLanguageNoMessageNoFailCase5() throws Exception
Exception
public final void testUnknownLanguageWithMessageNoFailCase1() throws Exception
Exception
public final void testUnknownLanguageWithMessageNoFailCase2() throws Exception
Exception
public final void testUnknownLanguageWithMessageNoFailCase3() throws Exception
Exception
public final void testUnknownLanguageWithMessageWithFailCase1() throws Exception
Exception
public final void testKnownLanguageNoMessageNoFailCase1() throws Exception
Exception
public final void testKnownLanguageNoMessageNoFailCase2() throws Exception
ParserConfig.useDefaults()
) will both generate no message and not
fail.Exception
public final void testKnownLanguageNoMessageNoFailCase3() throws Exception
Exception
public final void testKnownLanguageNoMessageNoFailCase4() throws Exception
Exception
public final void testKnownLanguageNoMessageNoFailCase5() throws Exception
Exception
public final void testKnownLanguageWithMessageNoFailCase1() throws Exception
Exception
public final void testKnownLanguageWithMessageNoFailCase2() throws Exception
Exception
public final void testKnownLanguageWithMessageNoFailCase3() throws Exception
Exception
Copyright © 2001-2016 Aduna. All Rights Reserved.