public abstract class CommonContainerTest extends RdfSourceTest
| Modifier and Type | Field and Description |
|---|---|
static String |
MSG_LOC_NOTFOUND |
static String |
MSG_MBRRES_NOTFOUND |
RELATIVE_URIauthDEFAULT_MODEL_TYPE, df, HTTP_LOG_FILENAME, httpLog, MANUAL, MAY, MUST, SHOULD, skipLog, SKIPPED_LOG_FILENAME| Constructor and Description |
|---|
CommonContainerTest(String auth) |
expectPut4xxConstrainedBy, expectPut4xxResponseBody, expectPut4xxStatus, modifyProperty, putReplaceResource, test4xxErrorHasResponseBody, testConformsRdfSourceLdpResource, testContainsRdfType, testGetResource, testGetResourceAcceptTurtle, testGetResourceAsTurtleNoAccept, testJsonLdRepresentation, testPublishConstraintsReadOnlyProp, testPublishConstraintsUnknownProp, testPutPropertiesNotPersisted, testPutReadOnlyProperties4xxStatus, testPutReplacesResource, testPutSimpleUpdate, testRelativeUriResolutionPut, testResponsePropertiesNotPersisted, testRestrictClientInference, testReUseVocabularies, testTypeRdfSource, testUseStandardVocabulariesaddFailureToHttpLog, buildBaseRequestSpecification, determineOptions, getResourceUri, skipIfMethodNotAllowed, supports, testAcceptPatchHeader, testConditionFailedStatusCode, testETagHeadersGet, testETagHeadersHead, testGetResponseHeaders, testHead, testIsHttp11Manual, testLdpLinkHeader, testOptions, testOptionsAllowHeader, testPreconditionRequiredStatusCode, testPutBadETag, testPutRequiresIfMatchcheckPreferenceAppliedHeader, commonSetup, commonTearDown, containsLinkHeader, getAsModel, getDefaultModel, getFirstLinkForRelation, getPrimaryTopic, getResourceAsModel, hasReturnRepresentation, include, omit, postContent, readModel, resolveIfRelative, resolveIfRelative, restrictionsOnPostContent, splitLinkspublic static final String MSG_LOC_NOTFOUND
public static final String MSG_MBRRES_NOTFOUND
public CommonContainerTest(String auth) throws IOException
IOException@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpr-put-create", testMethod=AUTOMATED, approval=WG_APPROVED) public void testPutToCreate()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpr-gen-defbaseuri", testMethod=AUTOMATED, approval=WG_APPROVED, comment="Covers only part of the specification requirement. ") public void testRelativeUriResolutionPost(String relativeUri)
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-nordfcontainertypes", testMethod=AUTOMATED, approval=WG_APPROVED) public void testNoRdfBagSeqOrList()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-prefer", testMethod=AUTOMATED, approval=WG_APPROVED) public void testPreferContainmentTriples()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-post-created201", testMethod=AUTOMATED, approval=WG_APPROVED) public void testPostResponseStatusAndLocation() throws URISyntaxException
URISyntaxException@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-post-createdmbr-contains", testMethod=AUTOMATED, approval=WG_APPROVED) public void testPostContainer() throws URISyntaxException
URISyntaxException@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-post-createrdf", testMethod=AUTOMATED, approval=WG_APPROVED, comment="Covers only part of the specification requirement. testRequestedInteractionModelHeaders covers the rest.") public void testRequestedInteractionModelCreateNotAllowed(String containerAsResource)
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-post-createrdf", testMethod=AUTOMATED, approval=WG_APPROVED, comment="Covers only part of the specification requirement. testRequestedInteractionModelCreateNotAllowed covers the rest.") public void testRequestedInteractionModelHeaders(String containerAsResource)
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-post-turtle", testMethod=AUTOMATED, approval=WG_APPROVED) public void testAcceptTurtle()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-post-contenttype", testMethod=AUTOMATED, approval=WG_APPROVED) public void testContentTypeHeader() throws URISyntaxException
URISyntaxException@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-post-rdfnullrel", testMethod=AUTOMATED, approval=WG_APPROVED) public void testNullRelativeUriPost() throws URISyntaxException
URISyntaxException@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-post-serverassignuri", testMethod=AUTOMATED, approval=WG_APPROVED) public void testPostNoSlug()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-post-mincontraints", testMethod=AUTOMATED, approval=WG_APPROVED) public void testCreateWithoutConstraints() throws URISyntaxException
URISyntaxException@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-post-dontreuseuris", testMethod=AUTOMATED, approval=WG_APPROVED, comment="Covers only part of the specification requirement. testRestrictUriReUseNoSlug covers the rest.") public void testRestrictUriReUseSlug() throws URISyntaxException
URISyntaxException@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-post-dontreuseuris", testMethod=AUTOMATED, approval=WG_APPROVED, comment="Covers only part of the specification requirement. testRestrictUriReUseSlug covers the rest.") public void testRestrictUriReUseNoSlug() throws URISyntaxException
URISyntaxException@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-post-acceptposthdr", testMethod=AUTOMATED, approval=WG_APPROVED) public void testAcceptPostResponseHeader()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-put-mbrprops", testMethod=AUTOMATED, approval=WG_APPROVED) public void testRejectPutModifyingContainmentTriples()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-put-create", testMethod=AUTOMATED, approval=WG_APPROVED) public void testRestrictPutReUseUri()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-del-contremovesconttriple", testMethod=AUTOMATED, approval=WG_APPROVED) public void testDeleteRemovesContainmentTriple() throws URISyntaxException
URISyntaxException@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-patch-req", testMethod=AUTOMATED, approval=WG_APPROVED) public void testPatchMethod()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-typecontainer", testMethod=AUTOMATED, approval=WG_APPROVED) public void testRdfTypeLdpContainer()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-post-slug", testMethod=AUTOMATED, approval=WG_APPROVED) public void testServerHonorsSlug()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-post-jsonld", testMethod=AUTOMATED, approval=WG_APPROVED) public void testPostJsonLd()
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-isldpr", testMethod=INDIRECT, approval=WG_APPROVED, coveredByTests=RdfSourceTest.class, coveredByGroups="MUST") public void testConformsContainerRdfResource()
protected boolean restrictionsOnTestResourceContent()
RdfSourceTestCommonResourceTest.getResourceUri()). Should be
true for LDP containers since PUT can't directly modify containment
triples.
This method is used for RdfSourceTest.testPutReplacesResource() and
RdfSourceTest.testRelativeUriResolutionPut(String).
restrictionsOnTestResourceContent in class RdfSourceTestLdpTest.restrictionsOnPostContent()protected String putToCreate()
testPutToCreate(),
testRestrictPutReUseUri()Copyright © 2014 World Wide Web Consortium (W3C). All rights reserved.