Package org.fcrepo.kernel.impl.models
Class ResourceHelperImplTest
java.lang.Object
org.fcrepo.kernel.impl.models.ResourceHelperImplTest
@ContextConfiguration("/containmentIndexTest.xml")
public class ResourceHelperImplTest
extends Object
Test for ResourceHelper
- Since:
- 6.0.0
- Author:
- whikloj
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidOnly Mementos go to the persistence layer.voidOnly Mementos go to the persistence layer.voidvoidvoidvoidvoidsetup()voidTest an item is not a ghost node because it exists.voidTest that when the resource that does exist shares the ID of a resource that does not, then we have a ghost node.
-
Constructor Details
-
ResourceHelperImplTest
public ResourceHelperImplTest()
-
-
Method Details
-
setup
- Throws:
Exception
-
doesResourceExist_Exists_WithSession
- Throws:
Exception
-
doesResourceExist_Exists_Description_WithSession
-
doesResourceExist_Exists_WithoutSession
- Throws:
Exception
-
doesResourceExist_Exists_Description_WithoutSession
-
doesResourceExist_DoesntExist_WithSession
- Throws:
Exception
-
doesResourceExist_DoesntExists_Description_WithSession
-
doesResourceExist_DoesntExist_WithoutSession
- Throws:
Exception
-
doesResourceExist_DoesntExists_Description_WithoutSession
-
doesResourceExist_Exception_WithSession
Only Mementos go to the persistence layer.- Throws:
Exception
-
doesResourceExist_Exception_WithoutSession
Only Mementos go to the persistence layer.- Throws:
Exception
-
testGhostNodeFailure
Test an item is not a ghost node because it exists. -
testGhostNodeSuccess
Test that when the resource that does exist shares the ID of a resource that does not, then we have a ghost node.
-