public abstract class RdfSourceTest extends CommonResourceTest
Modifier and Type | Field and Description |
---|---|
protected static String |
RELATIVE_URI
A relative URI to use for testing.
|
auth
DEFAULT_MODEL_TYPE, df, HTTP_LOG_FILENAME, httpLog, MANUAL, MAY, MUST, SHOULD, skipLog, SKIPPED_LOG_FILENAME
Constructor and Description |
---|
RdfSourceTest(String auth) |
addFailureToHttpLog, buildBaseRequestSpecification, determineOptions, getResourceUri, skipIfMethodNotAllowed, supports, testAcceptPatchHeader, testConditionFailedStatusCode, testETagHeadersGet, testETagHeadersHead, testGetResponseHeaders, testHead, testIsHttp11Manual, testLdpLinkHeader, testOptions, testOptionsAllowHeader, testPreconditionRequiredStatusCode, testPutBadETag, testPutRequiresIfMatch
checkPreferenceAppliedHeader, commonSetup, commonTearDown, containsLinkHeader, getAsModel, getDefaultModel, getFirstLinkForRelation, getPrimaryTopic, getResourceAsModel, hasReturnRepresentation, include, omit, postContent, readModel, resolveIfRelative, resolveIfRelative, restrictionsOnPostContent, splitLinks
protected static final String RELATIVE_URI
public RdfSourceTest(String auth) throws IOException
IOException
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpr-gen-defbaseuri", testMethod=AUTOMATED, approval=WG_APPROVED) public void testRelativeUriResolutionPut(String relativeUri)
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpr-put-replaceall", testMethod=AUTOMATED, approval=WG_APPROVED) public void testPutReplacesResource()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpr-put-simpleupdate", testMethod=AUTOMATED, approval=WG_APPROVED) public void testPutSimpleUpdate()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldprs-gen-rdf", testMethod=AUTOMATED, approval=WG_APPROVED) public void testGetResource()
testGetResource
in class CommonResourceTest
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldprs-gen-atleast1rdftype", testMethod=AUTOMATED, approval=WG_APPROVED) public void testContainsRdfType()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldprs-rdftype", testMethod=AUTOMATED, approval=WG_APPROVED) public void testTypeRdfSource()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldprs-gen-reusevocab", testMethod=MANUAL, approval=WG_APPROVED, steps={"Given a URL for a RDF Source, perform a GET using an RDF content type","Inspect the content to ensure standard terms are used. For example, if things like ex:label or ex:title are used, instead of DCTERMS or RDFS, then the test should fail."}) public void testReUseVocabularies()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldprs-gen-reusevocabsuchas", testMethod=MANUAL, approval=WG_APPROVED, steps={"Given a URL for a RDF Source, perform a GET using an RDF content type","Inspect the content to ensure standard terms are used. For example, if things like ex:label or ex:title are used, instead of DCTERMS or RDFS, then the test should fail."}) public void testUseStandardVocabularies() throws URISyntaxException
URISyntaxException
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldprs-gen-noinferencing", testMethod=MANUAL, approval=WG_APPROVED, steps={"Perform a GET on a URL for the reource requesting an RDF content type","Inspect the results (both headers and content) for missing terms. Additionally could run an inferencing tool and compare results, seeing if needed informationshould have been explicitly listed by the server."}) public void testRestrictClientInference()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldprs-get-turtle", testMethod=AUTOMATED, approval=WG_APPROVED) public void testGetResourceAcceptTurtle()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldprs-get-conneg", testMethod=AUTOMATED, approval=WG_APPROVED) public void testGetResourceAsTurtleNoAccept()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldprs-get-jsonld", testMethod=AUTOMATED, approval=WG_APPROVED) public void testJsonLdRepresentation() throws IOException, com.github.jsonldjava.core.JsonLdError
IOException
com.github.jsonldjava.core.JsonLdError
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpr-gen-pubclireqs", testMethod=AUTOMATED, approval=WG_APPROVED, comment="Covers only part of the specification requirement. testPublishConstraintsUnknownProp covers the rest.") public void testPublishConstraintsReadOnlyProp(String readOnlyProp)
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpr-gen-pubclireqs", testMethod=AUTOMATED, approval=WG_APPROVED, comment="Covers only part of the specification requirement. testPublishConstraintsReadOnlyProp covers the rest.") public void testPublishConstraintsUnknownProp()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldprs-put-servermanagedprops", testMethod=AUTOMATED, approval=WG_APPROVED, comment="Covers only part of the specification requirement. test4xxErrorHasResponseBody covers the rest.") public void testPutReadOnlyProperties4xxStatus(String readOnlyProp)
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldprs-put-servermanagedprops", testMethod=AUTOMATED, approval=WG_APPROVED, comment="Covers only part of the specification requirement. testPutReadOnlyProperties4xxStatus covers the rest.") public void test4xxErrorHasResponseBody(String readOnlyProp)
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldprs-put-failed", testMethod=AUTOMATED, approval=WG_APPROVED, comment="Covers only part of the specification requirement. testResponsePropertiesNotPersisted covers the rest.") public void testPutPropertiesNotPersisted()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldprs-put-failed", testMethod=AUTOMATED, approval=WG_APPROVED, comment="Covers only part of the specification requirement. testPutPropertiesNotPersisted covers the rest.") public void testResponsePropertiesNotPersisted()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldprs-are-ldpr", testMethod=INDIRECT, approval=WG_APPROVED, coveredByTests=CommonResourceTest.class, coveredByGroups="MUST") public void testConformsRdfSourceLdpResource()
protected void modifyProperty(com.hp.hpl.jena.rdf.model.Model m, String resourceUri, String property)
protected void expectPut4xxConstrainedBy(String invalidProp)
protected com.jayway.restassured.response.Response expectPut4xxStatus(String invalidProp)
protected void expectPut4xxResponseBody(String invalidProp)
protected boolean restrictionsOnTestResourceContent()
CommonResourceTest.getResourceUri()
). Should be
true for LDP containers since PUT can't directly modify containment
triples.
This method is used for testPutReplacesResource()
and
testRelativeUriResolutionPut(String)
.
LdpTest.restrictionsOnPostContent()
protected void putReplaceResource(boolean continueOnError)
Copyright © 2014 World Wide Web Consortium (W3C). All rights reserved.