public class NonRDFSourceTest extends CommonResourceTest
auth
DEFAULT_MODEL_TYPE, df, HTTP_LOG_FILENAME, httpLog, MANUAL, MAY, MUST, SHOULD, skipLog, SKIPPED_LOG_FILENAME
Constructor and Description |
---|
NonRDFSourceTest(String auth) |
Modifier and Type | Method and Description |
---|---|
void |
createTestResource(String basicContainer,
String directContainer,
String indirectContainer) |
void |
deleteTestResource() |
protected String |
getResourceUri() |
protected com.jayway.restassured.response.Response |
postNonRDFSource(String slug,
String file,
String mimeType) |
void |
testDeleteNonRDFSourceDeletesAssociatedResource() |
void |
testOptionsHasSameLinkHeader() |
void |
testPostNonRDFSource() |
void |
testPostResourceAndCheckAssociatedResource() |
void |
testPostResourceAndCheckLink() |
void |
testPostResourceAndGetFromContainer() |
void |
testPostResourceGetBinary() |
void |
testPostResourceGetMetadataAndBinary() |
addFailureToHttpLog, buildBaseRequestSpecification, determineOptions, skipIfMethodNotAllowed, supports, testAcceptPatchHeader, testConditionFailedStatusCode, testETagHeadersGet, testETagHeadersHead, testGetResource, 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
public NonRDFSourceTest(String auth) throws IOException
IOException
public void createTestResource(String basicContainer, String directContainer, String indirectContainer)
public void deleteTestResource()
protected String getResourceUri()
getResourceUri
in class CommonResourceTest
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-post-createbins", testMethod=AUTOMATED, approval=WG_APPROVED, comment="Covers only part of the specification requirement. testPostResourceAndGetFromContainer covers the rest.") public void testPostNonRDFSource() throws IOException
IOException
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-post-createbins", testMethod=AUTOMATED, approval=WG_APPROVED, comment="Covers only part of the specification requirement. testPostNonRDFSource covers the rest.") public void testPostResourceAndGetFromContainer() throws IOException
IOException
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpr-gen-binary", testMethod=AUTOMATED, approval=WG_APPROVED) public void testPostResourceGetBinary() throws IOException
IOException
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpnr-are-ldpr", testMethod=AUTOMATED, approval=WG_APPROVED) public void testPostResourceGetMetadataAndBinary() throws IOException
IOException
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpnr-type", testMethod=AUTOMATED, approval=WG_APPROVED) public void testPostResourceAndCheckLink() throws IOException
IOException
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-post-createbinlinkmetahdr", testMethod=AUTOMATED, approval=WG_APPROVED) public void testPostResourceAndCheckAssociatedResource() throws IOException
IOException
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-del-contremovescontres", testMethod=AUTOMATED, approval=WG_APPROVED) public void testDeleteNonRDFSourceDeletesAssociatedResource() throws IOException
IOException
protected com.jayway.restassured.response.Response postNonRDFSource(String slug, String file, String mimeType) throws IOException
IOException
@SpecTest(specRefUri="http://www.w3.org/TR/ldp#ldpc-options-linkmetahdr", testMethod=AUTOMATED, approval=WG_APPROVED) public void testOptionsHasSameLinkHeader() throws IOException
IOException
Copyright © 2014 World Wide Web Consortium (W3C). All rights reserved.