Package org.fcrepo.integration.http.api
Class FedoraRelaxedLdpIT
- java.lang.Object
-
- org.fcrepo.integration.http.api.AbstractResourceIT
-
- org.fcrepo.integration.http.api.FedoraRelaxedLdpIT
-
@TestExecutionListeners(listeners=TestIsolationExecutionListener.class, mergeMode=MERGE_WITH_DEFAULTS) public class FedoraRelaxedLdpIT extends AbstractResourceIT
- Author:
- Mike Durbin
-
-
Field Summary
-
Fields inherited from class org.fcrepo.integration.http.api.AbstractResourceIT
authPropsConfig, BASIC_CONTAINER_LINK_HEADER, client, containerWrapper, DCTITLE, DIRECT_CONTAINER_LINK_HEADER, logger, NON_RDF_SOURCE_LINK_HEADER, propsConfig, serverAddress
-
-
Constructor Summary
Constructors Constructor Description FedoraRelaxedLdpIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidswitchToRelaxedMode()voidswitchToStrictMode()voidtestBasicPutRoundtrip()voidtestChangeInteractionModelPatchRdf()voidtestChangeInteractionModelPutRdf()voidtestCreateResourceWithSpecificCreationInformationIsAllowed()voidtestInvalidSparqlUpdate()voidtestPatchNonRelaxablePredicates()voidtestPutNonRelaxablePredicates()voidtestRoundtripping()Tests a lossless roundtrip of a resource.voidtestUpdateNonRdfResourceWithSpecificInformationIsAllowed()voidtestUpdateResourceWithSpecificModificationInformationIsAllowed()voidtestValidSparqlUpdate()-
Methods inherited from class org.fcrepo.integration.http.api.AbstractResourceIT
addTxTo, assertConstrainedByPresent, assertDeleted, assertNoLinkHeader, assertNotDeleted, assertNotFound, checkForLinkHeader, confirmResponseBodyNTriplesAreEqual, createClient, createClient, createDatastream, createDatastream, createObject, createObject, createObjectAndClose, createObjectAndClose, createTransaction, decodeDigestHeader, deleteObjMethod, execute, executeAndClose, executeWithBasicAuth, getBean, getBean, getContentLocation, getContentType, getContentType, getDataset, getDataset, getDSDescMethod, getDSMethod, getEtag, getEtag, getEtag, getExternalContentLinkHeader, getHeader, getLinkHeaders, getLinkHeaders, getLocation, getLocation, getModel, getModel, getModel, getModel, getObjMethod, getOriginalResourceUri, getRandomUniqueId, getStatus, getStatus, getTTLThatUpdatesServerManagedTriples, headerValues, headObjMethod, patchObjMethod, postObjMethod, postObjMethod, preferLink, putDSMethod, putDSMethod, putObjMethod, putObjMethod, restartContainer, setDescriptionProperty, setLogger, setProperty, setProperty, streamModel
-
-
-
-
Constructor Detail
-
FedoraRelaxedLdpIT
public FedoraRelaxedLdpIT()
-
-
Method Detail
-
switchToRelaxedMode
public void switchToRelaxedMode()
-
testBasicPutRoundtrip
public void testBasicPutRoundtrip() throws IOException
- Throws:
IOException
-
testCreateResourceWithSpecificCreationInformationIsAllowed
public void testCreateResourceWithSpecificCreationInformationIsAllowed() throws IOException
- Throws:
IOException
-
testUpdateNonRdfResourceWithSpecificInformationIsAllowed
public void testUpdateNonRdfResourceWithSpecificInformationIsAllowed() throws IOException
- Throws:
IOException
-
testValidSparqlUpdate
public void testValidSparqlUpdate() throws IOException
- Throws:
IOException
-
testInvalidSparqlUpdate
public void testInvalidSparqlUpdate() throws IOException
- Throws:
IOException
-
testUpdateResourceWithSpecificModificationInformationIsAllowed
public void testUpdateResourceWithSpecificModificationInformationIsAllowed() throws IOException
- Throws:
IOException
-
testRoundtripping
public void testRoundtripping() throws IOException
Tests a lossless roundtrip of a resource.- Throws:
IOException- if an error occurs while reading or writing to repository over HTTP
-
testChangeInteractionModelPutRdf
public void testChangeInteractionModelPutRdf() throws Exception
- Throws:
Exception
-
testChangeInteractionModelPatchRdf
public void testChangeInteractionModelPatchRdf() throws Exception
- Throws:
Exception
-
testPutNonRelaxablePredicates
public void testPutNonRelaxablePredicates() throws Exception
- Throws:
Exception
-
testPatchNonRelaxablePredicates
public void testPatchNonRelaxablePredicates() throws Exception
- Throws:
Exception
-
switchToStrictMode
public void switchToStrictMode()
-
-