Package org.fcrepo.kernel.impl.services
Class CreateResourceServiceImplTest
- java.lang.Object
-
- org.fcrepo.kernel.impl.services.CreateResourceServiceImplTest
-
@ContextConfiguration("/containmentIndexTest.xml") public class CreateResourceServiceImplTest extends Object- Author:
- bseeger
-
-
Field Summary
Fields Modifier and Type Field Description org.junit.rules.TemporaryFoldertempFolder
-
Constructor Summary
Constructors Constructor Description CreateResourceServiceImplTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestCheckAclLinkHeaderFailDblQ()voidtestCheckAclLinkHeaderFailNoQ()voidtestCheckAclLinkHeaderFailSingleQ()voidtestCheckAclLinkHeaderSuccess()voidtestCopyExternalBinary()voidtestIsRdfHasContentIsExternal()voidtestIsRdfHasContentNotExternal()voidtestIsRdfNoContentIsExternal()voidtestIsRdfNoContentNotExternal()voidtestNoParentRdf()Test trying to add a child to a non-existant parent.voidtestNotRdfContentPresentIsExternal()voidtestNotRdfContentPresentNotExternal()voidtestNotRdfNoContentIsExternal()voidtestParentAg()voidtestParentContainerInAg()voidtestParentIsBinary()Test creating a NonRDFSource with a NonRDFSource parent.voidtestParentIsBinaryRdf()Test creating a RDFSource with a NonRDFSource parent.voidtestParentIsExternal()Test creating an external NonRDFSource with a NonRDFSource parent.voidtestParentIsRdf()Test creating a RDFSource with a RDFSource parent.voidtestParentIsRdfBinary()Test creating a NonRDFSource with a RDFSource parent.voidtestProxyExternalBinary()voidtestRdfSetRelaxedProperties_Post()Test setting some system properties only accessible in relaxed mode.voidtestSendingInvalidInteractionModelIsNotRdf()voidtestSendingValidInteractionModel()voidtestWithBinary()This test now seems to ensure that the createResourceService will overwrite an existing object TODO: Review expectations
-
-
-
Field Detail
-
tempFolder
public org.junit.rules.TemporaryFolder tempFolder
-
-
Constructor Detail
-
CreateResourceServiceImplTest
public CreateResourceServiceImplTest()
-
-
Method Detail
-
setUp
public void setUp()
-
testNoParentRdf
public void testNoParentRdf() throws Exception
Test trying to add a child to a non-existant parent. We recursive to repository root for a parent, so this is now just creating a ghost node?- Throws:
Exception
-
testParentAg
public void testParentAg()
-
testParentContainerInAg
public void testParentContainerInAg()
-
testParentIsBinaryRdf
public void testParentIsBinaryRdf() throws Exception
Test creating a RDFSource with a NonRDFSource parent.- Throws:
Exception
-
testParentIsBinary
public void testParentIsBinary() throws Exception
Test creating a NonRDFSource with a NonRDFSource parent.- Throws:
Exception
-
testParentIsExternal
public void testParentIsExternal() throws Exception
Test creating an external NonRDFSource with a NonRDFSource parent. TODO: put/post to a binary parent is tested above, might be a duplicate.- Throws:
Exception
-
testParentIsRdf
public void testParentIsRdf() throws Exception
Test creating a RDFSource with a RDFSource parent.- Throws:
Exception
-
testParentIsRdfBinary
public void testParentIsRdfBinary() throws Exception
Test creating a NonRDFSource with a RDFSource parent.- Throws:
Exception
-
testRdfSetRelaxedProperties_Post
public void testRdfSetRelaxedProperties_Post() throws Exception
Test setting some system properties only accessible in relaxed mode.- Throws:
Exception
-
testWithBinary
public void testWithBinary() throws Exception
This test now seems to ensure that the createResourceService will overwrite an existing object TODO: Review expectations- Throws:
Exception
-
testSendingValidInteractionModel
public void testSendingValidInteractionModel()
-
testSendingInvalidInteractionModelIsNotRdf
public void testSendingInvalidInteractionModelIsNotRdf()
-
testNotRdfNoContentIsExternal
public void testNotRdfNoContentIsExternal()
-
testNotRdfContentPresentNotExternal
public void testNotRdfContentPresentNotExternal()
-
testNotRdfContentPresentIsExternal
public void testNotRdfContentPresentIsExternal()
-
testIsRdfNoContentNotExternal
public void testIsRdfNoContentNotExternal()
-
testIsRdfNoContentIsExternal
public void testIsRdfNoContentIsExternal()
-
testIsRdfHasContentNotExternal
public void testIsRdfHasContentNotExternal()
-
testIsRdfHasContentIsExternal
public void testIsRdfHasContentIsExternal()
-
testCheckAclLinkHeaderFailDblQ
public void testCheckAclLinkHeaderFailDblQ() throws Exception
- Throws:
Exception
-
testCheckAclLinkHeaderFailSingleQ
public void testCheckAclLinkHeaderFailSingleQ() throws Exception
- Throws:
Exception
-
testCheckAclLinkHeaderFailNoQ
public void testCheckAclLinkHeaderFailNoQ() throws Exception
- Throws:
Exception
-
testCheckAclLinkHeaderSuccess
public void testCheckAclLinkHeaderSuccess() throws Exception
- Throws:
Exception
-
testCopyExternalBinary
public void testCopyExternalBinary() throws Exception
- Throws:
Exception
-
testProxyExternalBinary
public void testProxyExternalBinary() throws Exception
- Throws:
Exception
-
-