public class FormRestApiJsonPost_Test extends AbstractTestFormRestApi
BaseWebScriptTest.BaseWebScriptTestListener, BaseWebScriptTest.HttpMethodResponse, BaseWebScriptTest.PatchMethod, BaseWebScriptTest.RemoteServer, BaseWebScriptTest.WebScriptTestListener
APPLICATION_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, tearDown
getCustomAuthenticatorFactory, getDefaultRunAs, getRemoteServer, getServer, isLogEnabled, log, sendLocalRequest, sendRemoteRequest, sendRequest, sendRequest, setCustomAuthenticatorFactory, setCustomContext, setDefaultRunAs, setListener, setRemoteServer, setTraceReqRes
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
assertEquals, 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, format
public void testSimpleJsonPostRequest() throws java.io.IOException, org.json.JSONException
java.io.IOException
org.json.JSONException
public void testAddNewAssociationsToNode() throws java.lang.Exception
java.lang.Exception
public void testRemoveAssociationsFromNode() throws java.lang.Exception
java.lang.Exception
public void testAddAssocThatAlreadyExists() throws java.lang.Exception
java.lang.Exception
public void testRemoveAssocThatDoesNotExist() throws java.lang.Exception
java.lang.Exception
public void testAddNewChildAssociationsToNode() throws java.lang.Exception
java.lang.Exception
public void testRemoveChildAssociationsFromNode() throws java.lang.Exception
java.lang.Exception
public void testAddChildAssocThatAlreadyExists() throws java.lang.Exception
java.lang.Exception
public void testRemoveChildAssocThatDoesNotExist() throws java.lang.Exception
java.lang.Exception
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.