public class FormRestApiJsonPost_Test extends AbstractTestFormRestApi
BaseWebScriptTest.BaseWebScriptTestListener, BaseWebScriptTest.HttpMethodResponse, BaseWebScriptTest.PatchMethod, BaseWebScriptTest.RemoteServer, BaseWebScriptTest.WebScriptTestListenerAPPLICATION_JSON, associatedDoc_A, associatedDoc_B, associatedDoc_C, associatedDoc_D, associatedDoc_E, childDoc_A, childDoc_B, childDoc_C, childDoc_D, childDoc_E, containerNodeRef, containingNodeUpdateUrl, containingNodeUrl, FORM_DEF_URL, nodeService, referencingDocNodeRef, referencingNodeUpdateUrl, refNodePropertiesAfterCreation, TEST_FORM_DESCRIPTION, TEST_FORM_TITLE, testFolderNodeRef, transactionService| Constructor and Description |
|---|
FormRestApiJsonPost_Test() |
| Modifier and Type | Method and Description |
|---|---|
void |
testAddAssocThatAlreadyExists()
This test method attempts to add the same association twice.
|
void |
testAddChildAssocThatAlreadyExists()
This test method attempts to add the same child association twice.
|
void |
testAddNewAssociationsToNode()
This test method attempts to add new associations between existing nodes.
|
void |
testAddNewChildAssociationsToNode()
This test method attempts to add new associations between existing nodes.
|
void |
testRemoveAssociationsFromNode()
This test method attempts to remove an existing association between two existing
nodes.
|
void |
testRemoveAssocThatDoesNotExist()
This test method attempts to remove an association that does not exist.
|
void |
testRemoveChildAssociationsFromNode()
This test method attempts to remove an existing child association between two
existing nodes.
|
void |
testRemoveChildAssocThatDoesNotExist()
This test method attempts to remove a child association that does not exist.
|
void |
testSimpleJsonPostRequest() |
createTestNode, sendGetReq, setUp, tearDowngetCustomAuthenticatorFactory, getDefaultRunAs, getRemoteServer, getServer, isLogEnabled, log, sendLocalRequest, sendRemoteRequest, sendRequest, sendRequest, setCustomAuthenticatorFactory, setCustomContext, setDefaultRunAs, setListener, setRemoteServer, setTraceReqRescountTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, formatpublic void testSimpleJsonPostRequest()
throws java.io.IOException,
org.json.JSONException
java.io.IOExceptionorg.json.JSONExceptionpublic void testAddNewAssociationsToNode()
throws java.lang.Exception
java.lang.Exceptionpublic void testRemoveAssociationsFromNode()
throws java.lang.Exception
java.lang.Exceptionpublic void testAddAssocThatAlreadyExists()
throws java.lang.Exception
java.lang.Exceptionpublic void testRemoveAssocThatDoesNotExist()
throws java.lang.Exception
java.lang.Exceptionpublic void testAddNewChildAssociationsToNode()
throws java.lang.Exception
java.lang.Exceptionpublic void testRemoveChildAssociationsFromNode()
throws java.lang.Exception
java.lang.Exceptionpublic void testAddChildAssocThatAlreadyExists()
throws java.lang.Exception
java.lang.Exceptionpublic void testRemoveChildAssocThatDoesNotExist()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.