Class AbstractQueryResultIOBooleanTest
java.lang.Object
org.eclipse.rdf4j.testsuite.query.resultio.AbstractQueryResultIOTest
org.eclipse.rdf4j.testsuite.query.resultio.AbstractQueryResultIOBooleanTest
Abstract test for QueryResultIO.
- Author:
- jeen, Peter Ansell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract BooleanQueryResultFormatprotected final QueryResultFormatprotected abstract TupleQueryResultFormatfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidMethods inherited from class AbstractQueryResultIOTest
assertQueryResultsEqual, createTupleMultipleBindingSets, createTupleNoBindingSets, createTupleSingleVarMultipleBindingSets, doBooleanLinks, doBooleanLinksAndStylesheet, doBooleanLinksAndStylesheetAndNamespaces, doBooleanLinksOnly, doBooleanNoHandler, doBooleanNoLinks, doBooleanParseNoHandlerOnTupleResults, doBooleanStylesheet, doInvalidBooleanAfterStartQueryResult, doTupleJSONPCallback, doTupleLinks, doTupleLinksAndStylesheet, doTupleLinksAndStylesheetAndNamespaces, doTupleLinksAndStylesheetAndNamespacesQName, doTupleLinksAndStylesheetMultipleEndHeaders, doTupleLinksAndStylesheetNoStarts, doTupleMissingStartQueryResult, doTupleNoHandler, doTupleNoLinks, doTupleParseNoHandlerOnBooleanResults, doTupleStylesheet, getFileName, getNamespaces, getNamespacesWithEmpty, parseTupleInternal, testGetParserFormatForFileNameStringModifier and TypeMethodDescriptionprotected voidassertQueryResultsEqual(TupleQueryResult expected, TupleQueryResult output) protected TupleQueryResultprotected TupleQueryResultprotected TupleQueryResultprotected voiddoBooleanLinks(BooleanQueryResultFormat format, boolean input, List<String> links) protected voiddoBooleanLinksAndStylesheet(BooleanQueryResultFormat format, boolean input, List<String> links, String stylesheetUrl) protected voiddoBooleanLinksAndStylesheetAndNamespaces(BooleanQueryResultFormat format, boolean input, List<String> links, String stylesheetUrl, Map<String, String> namespaces) protected voiddoBooleanLinksOnly(BooleanQueryResultFormat format, boolean input, List<String> links) protected voiddoBooleanNoHandler(BooleanQueryResultFormat format, boolean input) Tests that parsing a boolean without specifying aBooleanQueryResultHandlerdoes not throw any exceptions.protected voiddoBooleanNoLinks(BooleanQueryResultFormat format, boolean input) protected voiddoBooleanParseNoHandlerOnTupleResults(BooleanQueryResultFormat format, TupleQueryResult tqr, TupleQueryResultFormat matchingTupleFormat) Tests that the parser returned for a BooleanQueryResultFormat is not able to parse a TupleQueryResultFormat using the deprecatedBooleanQueryResultParser.parse(java.io.InputStream)method, and that it does indeed through an exception of typeQueryResultParseException.protected voiddoBooleanStylesheet(BooleanQueryResultFormat format, boolean input, String stylesheetUrl) protected voiddoInvalidBooleanAfterStartQueryResult(BooleanQueryResultFormat format, boolean input, List<String> links) protected voiddoTupleJSONPCallback(TupleQueryResultFormat format, TupleQueryResult input, TupleQueryResult expected) Test specifically for JSONP callback support.protected voiddoTupleLinks(TupleQueryResultFormat format, TupleQueryResult input, TupleQueryResult expected, List<String> links) protected voiddoTupleLinksAndStylesheet(TupleQueryResultFormat format, TupleQueryResult input, TupleQueryResult expected, List<String> links, String stylesheetUrl) protected voiddoTupleLinksAndStylesheetAndNamespaces(TupleQueryResultFormat format, TupleQueryResult input, TupleQueryResult expected, List<String> links, String stylesheetUrl, Map<String, String> namespaces) protected voiddoTupleLinksAndStylesheetAndNamespacesQName(TupleQueryResultFormat format, TupleQueryResult input, TupleQueryResult expected, List<String> links, String stylesheetUrl, Map<String, String> namespaces) Test specifically for QName support.protected voiddoTupleLinksAndStylesheetMultipleEndHeaders(TupleQueryResultFormat format, TupleQueryResult input, TupleQueryResult expected, List<String> links, String stylesheetUrl) protected voiddoTupleLinksAndStylesheetNoStarts(TupleQueryResultFormat format, TupleQueryResult input, TupleQueryResult expected, List<String> links, String stylesheetUrl) protected voiddoTupleMissingStartQueryResult(TupleQueryResultFormat format, TupleQueryResult input, TupleQueryResult expected, List<String> links, String stylesheetUrl) protected voiddoTupleNoHandler(TupleQueryResultFormat format, TupleQueryResult input, TupleQueryResult expected) Tests that parsing a tuple results set without specifying aTupleQueryResultHandlerdoes not throw any exceptions.protected voiddoTupleNoLinks(TupleQueryResultFormat format, TupleQueryResult input, TupleQueryResult expected) protected voiddoTupleParseNoHandlerOnBooleanResults(TupleQueryResultFormat format, boolean input, BooleanQueryResultFormat matchingBooleanFormat) Tests that the parser returned for a TupleQueryResultFormat is not able to parse a BooleanQueryResultFormat using the deprecatedTupleQueryResultParser.parse(java.io.InputStream)method, and that it does indeed through an exception of typeQueryResultParseException.protected voiddoTupleStylesheet(TupleQueryResultFormat format, TupleQueryResult input, TupleQueryResult expected, String stylesheetUrl) protected abstract Stringprotected TupleQueryResultparseTupleInternal(TupleQueryResultFormat format, InputStream in) Override this to customise how the tuple parsing is performed, particularly to test background and other parsing strategies.final voidTest method forQueryResultIO.getParserFormatForFileName(java.lang.String).
-
Constructor Details
-
AbstractQueryResultIOBooleanTest
public AbstractQueryResultIOBooleanTest()
-
-
Method Details
-
getFormat
- Specified by:
getFormatin classAbstractQueryResultIOTest
-
getBooleanFormat
- Returns:
- The
BooleanQueryResultFormatthat this test is running against.
-
getMatchingTupleFormatOrNull
- Returns:
- The
TupleQueryResultFormatthat may be parsed by the same parser as the one forgetBooleanFormat(), or null if this functionality is not supported.
-
testBooleanNoLinks
-
testBooleanEmptyLinks
-
testBooleanOneLink
-
testBooleanMultipleLinks
-
testBooleanEmptyLinksOnly
-
testBooleanOneLinkOnly
-
testBooleanMultipleLinksOnly
-
testBooleanMultipleLinksWithStylesheet
-
testMultipleResultsAndStylesheet
-
testInvalidBooleanAfterStartQueryResult
@Test public final void testInvalidBooleanAfterStartQueryResult() -
testBooleanNoHandler
-
testBooleanParseNoHandlerOnTupleResultsNoResults
-
testBooleanParseNoHandlerOnTupleResultsSingleVarMultipleBindingSets
-
testBooleanParseNoHandlerOnTupleResultsMultipleBindingsMultipleBindingSets
-