@ContextConfiguration(value="/spring-test/repo.xml") public abstract class AbstractFedoraFileSystemConnectorIT extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.fcrepo.kernel.api.services.BinaryService |
binaryService |
protected org.fcrepo.kernel.api.services.ContainerService |
containerService |
protected org.fcrepo.kernel.api.services.NodeService |
nodeService |
protected javax.jcr.Repository |
repo |
| Constructor and Description |
|---|
AbstractFedoraFileSystemConnectorIT() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
cleanUpJsonFilesFiles(File directory) |
protected abstract String |
federationName()
The name (relative path) of the federation to be tested.
|
protected File |
fileForNode() |
protected abstract String |
getFederationRoot()
The filesystem path for the root of the filesystem federation being
tested.
|
protected String |
getReadOnlyFederationRoot() |
protected String |
getReadWriteFederationRoot() |
protected File |
propertyFileForNode(javax.jcr.Node node)
The following is painfully tied to some implementation details
but it's critical that we test that the json files are actually written
somewhere, so it's the best I can do without further opening up the
internals of JsonSidecarExtraPropertiesStore.
|
static void |
setSystemPropertiesAndCleanUp()
Sets a system property and ensures artifacts from previous tests are
cleaned up.
|
void |
testChangedFileFixity() |
protected abstract String |
testDirPath()
Gets the path (relative to the filesystem federation) of a directory
that's expected to be present.
|
protected abstract String |
testFilePath()
Gets the path (relative to the filesystem federation) of a file
that's expected to be present.
|
void |
testFixity() |
void |
testGetFederatedContent() |
void |
testGetFederatedDatastream() |
void |
testGetFederatedObject() |
static void |
unsetSystemPropertiesAndCleanUp() |
@Inject protected javax.jcr.Repository repo
@Inject protected org.fcrepo.kernel.api.services.NodeService nodeService
@Inject protected org.fcrepo.kernel.api.services.ContainerService containerService
@Inject protected org.fcrepo.kernel.api.services.BinaryService binaryService
public AbstractFedoraFileSystemConnectorIT()
protected abstract String testDirPath()
protected abstract String testFilePath()
protected abstract String federationName()
protected abstract String getFederationRoot()
protected String getReadWriteFederationRoot()
protected String getReadOnlyFederationRoot()
public static void setSystemPropertiesAndCleanUp()
public static void unsetSystemPropertiesAndCleanUp()
protected static void cleanUpJsonFilesFiles(File directory)
public void testGetFederatedObject() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testGetFederatedDatastream() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testGetFederatedContent() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void testFixity() throws javax.jcr.RepositoryException, IOException, NoSuchAlgorithmException
javax.jcr.RepositoryExceptionIOExceptionNoSuchAlgorithmExceptionpublic void testChangedFileFixity() throws javax.jcr.RepositoryException, IOException, NoSuchAlgorithmException
javax.jcr.RepositoryExceptionIOExceptionNoSuchAlgorithmExceptionprotected File fileForNode()
protected File propertyFileForNode(javax.jcr.Node node)
node - The node to access for the file referenceCopyright © 2013-2016 DuraSpace, Inc.. All Rights Reserved.