|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.util.RetryingTransactionHelperTestCase.Test
protected abstract class RetryingTransactionHelperTestCase.Test
Class containing the code to run as test and the optional code to check the results of the test in a separate transaction if required.
Field Summary | |
---|---|
protected java.util.Map |
model
Map containing model values. |
Constructor Summary | |
---|---|
protected |
RetryingTransactionHelperTestCase.Test()
|
Method Summary | |
---|---|
protected org.alfresco.service.cmr.repository.NodeRef |
getNodeRef(java.lang.String key)
Helper method to get node reference value from model |
protected java.lang.String |
getString(java.lang.String key)
Helper method to get a string value from the model |
abstract java.lang.Object |
run()
Body of the test is implemented here. |
protected org.alfresco.service.cmr.repository.NodeRef |
setNodeRef(java.lang.String key,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
Helper method to set node reference value in model |
protected java.lang.String |
setString(java.lang.String key,
java.lang.String value)
Helper method to set a string vaule in the model |
void |
test(java.lang.Object result)
If you wish to test the results of the above method within a new and separate transaction then implement the tests here. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map model
Constructor Detail |
---|
protected RetryingTransactionHelperTestCase.Test()
Method Detail |
---|
protected java.lang.String setString(java.lang.String key, java.lang.String value)
key
- model keyvalue
- model value
protected java.lang.String getString(java.lang.String key)
key
- model key
protected org.alfresco.service.cmr.repository.NodeRef setNodeRef(java.lang.String key, org.alfresco.service.cmr.repository.NodeRef nodeRef)
key
- model keynodeRef
- node reference
NodeRef
node referenceprotected org.alfresco.service.cmr.repository.NodeRef getNodeRef(java.lang.String key)
key
- mode key
NodeRef
node referencepublic abstract java.lang.Object run() throws java.lang.Exception
java.lang.Exception
public void test(java.lang.Object result) throws java.lang.Exception
result
- result of the above method
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |