org.alfresco.repo.web.scripts.forms
Class AbstractTestFormRestApi

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.web.scripts.BaseWebScriptTest
              extended by org.alfresco.repo.web.scripts.forms.AbstractTestFormRestApi
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
FormRestApiGet_Test, FormRestApiJsonPost_Test

public abstract class AbstractTestFormRestApi
extends BaseWebScriptTest


Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.repo.web.scripts.BaseWebScriptTest
BaseWebScriptTest.BaseWebScriptTestListener, BaseWebScriptTest.HttpMethodResponse, BaseWebScriptTest.PatchMethod, BaseWebScriptTest.RemoteServer, BaseWebScriptTest.WebScriptTestListener
 
Field Summary
protected static java.lang.String APPLICATION_JSON
           
protected  org.alfresco.service.cmr.repository.NodeRef associatedDoc_A
           
protected  org.alfresco.service.cmr.repository.NodeRef associatedDoc_B
           
protected  org.alfresco.service.cmr.repository.NodeRef associatedDoc_C
           
protected  org.alfresco.service.cmr.repository.NodeRef associatedDoc_D
           
protected  org.alfresco.service.cmr.repository.NodeRef associatedDoc_E
           
protected  org.alfresco.service.cmr.repository.NodeRef childDoc_A
           
protected  org.alfresco.service.cmr.repository.NodeRef childDoc_B
           
protected  org.alfresco.service.cmr.repository.NodeRef childDoc_C
           
protected  org.alfresco.service.cmr.repository.NodeRef childDoc_D
           
protected  org.alfresco.service.cmr.repository.NodeRef childDoc_E
           
protected  org.alfresco.service.cmr.repository.NodeRef containerNodeRef
           
protected  java.lang.String containingNodeUpdateUrl
           
protected  java.lang.String containingNodeUrl
           
protected static java.lang.String FORM_DEF_URL
           
protected  org.alfresco.service.cmr.repository.NodeService nodeService
           
protected  org.alfresco.service.cmr.repository.NodeRef referencingDocNodeRef
           
protected  java.lang.String referencingNodeUpdateUrl
           
protected  java.util.Map refNodePropertiesAfterCreation
           
protected static java.lang.String TEST_FORM_DESCRIPTION
           
protected static java.lang.String TEST_FORM_TITLE
           
protected  org.alfresco.service.cmr.repository.NodeRef testFolderNodeRef
           
protected  org.alfresco.service.transaction.TransactionService transactionService
           
 
Constructor Summary
AbstractTestFormRestApi()
           
 
Method Summary
protected  org.alfresco.service.cmr.repository.NodeRef createTestNode(java.lang.String associatedDocName)
           
protected  org.springframework.extensions.webscripts.TestWebScriptServer.Response sendGetReq(java.lang.String url, int expectedStatusCode)
           
protected  void setUp()
           
 void tearDown()
           
 
Methods inherited from class org.alfresco.repo.web.scripts.BaseWebScriptTest
getDefaultRunAs, getRemoteServer, getServer, isLogEnabled, log, sendLocalRequest, sendRemoteRequest, sendRequest, sendRequest, setCustomContext, setDefaultRunAs, setListener, setRemoteServer, setTraceReqRes
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

APPLICATION_JSON

protected static final java.lang.String APPLICATION_JSON
See Also:
Constant Field Values

TEST_FORM_DESCRIPTION

protected static final java.lang.String TEST_FORM_DESCRIPTION
See Also:
Constant Field Values

TEST_FORM_TITLE

protected static final java.lang.String TEST_FORM_TITLE
See Also:
Constant Field Values

FORM_DEF_URL

protected static final java.lang.String FORM_DEF_URL
See Also:
Constant Field Values

referencingNodeUpdateUrl

protected java.lang.String referencingNodeUpdateUrl

containingNodeUpdateUrl

protected java.lang.String containingNodeUpdateUrl

containingNodeUrl

protected java.lang.String containingNodeUrl

referencingDocNodeRef

protected org.alfresco.service.cmr.repository.NodeRef referencingDocNodeRef

refNodePropertiesAfterCreation

protected java.util.Map refNodePropertiesAfterCreation

associatedDoc_A

protected org.alfresco.service.cmr.repository.NodeRef associatedDoc_A

associatedDoc_B

protected org.alfresco.service.cmr.repository.NodeRef associatedDoc_B

associatedDoc_C

protected org.alfresco.service.cmr.repository.NodeRef associatedDoc_C

associatedDoc_D

protected org.alfresco.service.cmr.repository.NodeRef associatedDoc_D

associatedDoc_E

protected org.alfresco.service.cmr.repository.NodeRef associatedDoc_E

childDoc_A

protected org.alfresco.service.cmr.repository.NodeRef childDoc_A

childDoc_B

protected org.alfresco.service.cmr.repository.NodeRef childDoc_B

childDoc_C

protected org.alfresco.service.cmr.repository.NodeRef childDoc_C

childDoc_D

protected org.alfresco.service.cmr.repository.NodeRef childDoc_D

childDoc_E

protected org.alfresco.service.cmr.repository.NodeRef childDoc_E

testFolderNodeRef

protected org.alfresco.service.cmr.repository.NodeRef testFolderNodeRef

nodeService

protected org.alfresco.service.cmr.repository.NodeService nodeService

containerNodeRef

protected org.alfresco.service.cmr.repository.NodeRef containerNodeRef

transactionService

protected org.alfresco.service.transaction.TransactionService transactionService
Constructor Detail

AbstractTestFormRestApi

public AbstractTestFormRestApi()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class BaseWebScriptTest
Throws:
java.lang.Exception

tearDown

public void tearDown()
Overrides:
tearDown in class junit.framework.TestCase

sendGetReq

protected org.springframework.extensions.webscripts.TestWebScriptServer.Response sendGetReq(java.lang.String url,
                                                                                            int expectedStatusCode)
                                                                                     throws java.io.IOException,
                                                                                            java.io.UnsupportedEncodingException
Throws:
java.io.IOException
java.io.UnsupportedEncodingException

createTestNode

protected org.alfresco.service.cmr.repository.NodeRef createTestNode(java.lang.String associatedDocName)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.