Package org.fcrepo.http.api
Class ExternalContentPathValidatorTest
- java.lang.Object
-
- org.fcrepo.http.api.ExternalContentPathValidatorTest
-
public class ExternalContentPathValidatorTest extends Object
- Author:
- bbpennel
-
-
Field Summary
Fields Modifier and Type Field Description org.junit.rules.TemporaryFoldertmpDir
-
Constructor Summary
Constructors Constructor Description ExternalContentPathValidatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafter()voidinit()voidtestAllowAny()voidtestCaseInsensitiveFileScheme()voidtestDetectModification()voidtestDisallowDirectoryUriWithoutSlash()voidtestDisallowFileUriWithSlash()voidtestEmptyPath()voidtestExactFileUri()voidtestFileSlashes()voidtestHttpUriMissingSlash()voidtestInvalidFileUri()voidtestInvalidHttpUri()voidtestListFileDoesNotExist()voidtestMalformedUri()voidtestMultipleMatches()voidtestMultipleSchemes()voidtestNonabsoluteUri()voidtestNoScheme()voidtestNullPath()voidtestRelativeModifier()voidtestValidateWithNoAllowList()voidtestValidFileUri()voidtestValidHttpUri()voidtestVaryingCaseHttpUri()voidtestVaryingSensitiveFilePath()
-
-
-
Field Detail
-
tmpDir
public org.junit.rules.TemporaryFolder tmpDir
-
-
Constructor Detail
-
ExternalContentPathValidatorTest
public ExternalContentPathValidatorTest()
-
-
Method Detail
-
after
public void after()
-
testValidateWithNoAllowList
public void testValidateWithNoAllowList() throws Exception
- Throws:
Exception
-
testValidFileUri
public void testValidFileUri() throws Exception
- Throws:
Exception
-
testValidHttpUri
public void testValidHttpUri() throws Exception
- Throws:
Exception
-
testExactFileUri
public void testExactFileUri() throws Exception
- Throws:
Exception
-
testMultipleMatches
public void testMultipleMatches() throws Exception
- Throws:
Exception
-
testMultipleSchemes
public void testMultipleSchemes() throws Exception
- Throws:
Exception
-
testInvalidFileUri
public void testInvalidFileUri() throws Exception
- Throws:
Exception
-
testMalformedUri
public void testMalformedUri() throws Exception
- Throws:
Exception
-
testNonabsoluteUri
public void testNonabsoluteUri() throws Exception
- Throws:
Exception
-
testInvalidHttpUri
public void testInvalidHttpUri() throws Exception
- Throws:
Exception
-
testHttpUriMissingSlash
public void testHttpUriMissingSlash() throws Exception
- Throws:
Exception
-
testRelativeModifier
public void testRelativeModifier() throws Exception
- Throws:
Exception
-
testNoScheme
public void testNoScheme() throws Exception
- Throws:
Exception
-
testEmptyPath
public void testEmptyPath() throws Exception
- Throws:
Exception
-
testNullPath
public void testNullPath() throws Exception
- Throws:
Exception
-
testListFileDoesNotExist
public void testListFileDoesNotExist() throws Exception
- Throws:
Exception
-
testAllowAny
public void testAllowAny() throws Exception
- Throws:
Exception
-
testCaseInsensitiveFileScheme
public void testCaseInsensitiveFileScheme() throws Exception
- Throws:
Exception
-
testVaryingSensitiveFilePath
public void testVaryingSensitiveFilePath() throws Exception
- Throws:
Exception
-
testVaryingCaseHttpUri
public void testVaryingCaseHttpUri() throws Exception
- Throws:
Exception
-
testFileSlashes
public void testFileSlashes() throws Exception
- Throws:
Exception
-
testDisallowDirectoryUriWithoutSlash
public void testDisallowDirectoryUriWithoutSlash() throws Exception
- Throws:
Exception
-
testDisallowFileUriWithSlash
public void testDisallowFileUriWithSlash() throws Exception
- Throws:
Exception
-
testDetectModification
public void testDetectModification() throws Exception
- Throws:
Exception
-
-