Package org.fcrepo.integration.http.api
Class ExternalContentPathValidatorIT
- java.lang.Object
-
- org.fcrepo.integration.http.api.AbstractResourceIT
-
- org.fcrepo.integration.http.api.ExternalContentPathValidatorIT
-
@DirtiesContext(classMode=BEFORE_CLASS) @TestExecutionListeners(listeners={org.springframework.test.context.support.DependencyInjectionTestExecutionListener.class,TestIsolationExecutionListener.class,DirtyContextBeforeAndAfterClassTestExecutionListener.class}, mergeMode=MERGE_WITH_DEFAULTS) public class ExternalContentPathValidatorIT extends AbstractResourceIT- Author:
- bbpennel
-
-
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, propsConfig, serverAddress
-
-
Constructor Summary
Constructors Constructor Description ExternalContentPathValidatorIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()voidtestAllowedCaseSensitiveFilePath()voidtestAllowedFilePath()voidtestAllowedPath()voidtestDisallowedFilePath()voidtestDisallowedPath()voidtestPathModifiers()-
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
-
ExternalContentPathValidatorIT
public ExternalContentPathValidatorIT()
-
-
Method Detail
-
testAllowedPath
public void testAllowedPath() throws Exception
- Throws:
Exception
-
testDisallowedPath
public void testDisallowedPath() throws Exception
- Throws:
Exception
-
testAllowedFilePath
public void testAllowedFilePath() throws Exception
- Throws:
Exception
-
testAllowedCaseSensitiveFilePath
public void testAllowedCaseSensitiveFilePath() throws Exception
- Throws:
Exception
-
testDisallowedFilePath
public void testDisallowedFilePath() throws Exception
- Throws:
Exception
-
testPathModifiers
public void testPathModifiers() throws Exception
- Throws:
Exception
-
-