站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

ProducerStatefulPortletInvokerTestCase - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.test.portlet.state
Class ProducerStatefulPortletInvokerTestCase

java.lang.Object
  extended byTestCase
      extended byorg.jboss.portal.test.portlet.state.AbstractStatefulPortletInvokerTestCase
          extended byorg.jboss.portal.test.portlet.state.ProducerStatefulPortletInvokerTestCase
Direct Known Subclasses:
LocalStoreProducerStatefulPortletInvokerTestCase, RemoteStoreProducerStatefulPortletInvokerTestCase

public abstract class ProducerStatefulPortletInvokerTestCase
extends AbstractStatefulPortletInvokerTestCase

Version:
$Revision: 5448 $
Author:
Julien Viet
See Also:
Serialized Form

Field Summary
protected  PortletInvokerSupport container
          .
protected  ProducerPersistenceManagerService persistenceManager
          .
protected  boolean persistLocally
          .
protected  ProducerPortletInvoker producer
          .
protected  StateConverterService stateConverter
          .
protected  StateManagementPolicyService stateManagementPolicy
          .
 
Constructor Summary
protected ProducerStatefulPortletInvokerTestCase(boolean persistLocally)
           
 
Method Summary
protected  void assertNoExistingState()
           
protected  ActionInvocation createAction(java.lang.Object portletRef, AccessMode accessMode)
           
protected  java.lang.Object createClone(java.lang.Object portletRef)
           
protected  java.lang.Object createInvalidPOPRef()
           
protected  java.lang.Object createLocalClone(java.lang.Object portletRef)
           
protected  java.lang.Object createNonExistingPOPRef()
           
protected  java.lang.Object createPOPRef(PortletSupport portletSupport)
           
protected  void destroyClone(java.lang.Object portletRef)
           
protected  java.util.List destroyClones(java.util.List portletRefs)
           
protected  java.lang.Object getImplicitClonedRef(ActionInvocation action)
           
protected  Portlet getPortlet(java.lang.Object portletRef)
           
protected  java.lang.String getPortletId(java.lang.Object portletRef)
           
protected  PropertyMap getProperties(java.lang.Object portletRef)
           
protected  PropertyMap getProperties(java.lang.Object portletRef, java.util.Set keys)
           
private  Portlet getSinglePOP()
           
protected  void invoke(PortletInvocation invocation)
           
protected  java.lang.Object setProperties(java.lang.Object portletRef, PropertyChange[] changes)
           
protected  void setUp()
           
 
Methods inherited from class org.jboss.portal.test.portlet.state.AbstractStatefulPortletInvokerTestCase
createLocalCCPRef, createNonExistingLocalCCPRef, createPOPRef, createPOPRef, getModifiedPortletRef, testCloneInvalidPOP, testCloneNonExistingCCP, testCloneNonExistingPOP, testClonePortlet, testCloneWithNullContext, testDestroyCCP, testDestroyNonExistingCCP, testDestroyPOP, testDestroyWithNullId, testGetCCPProperties, testGetCCPWithNullKeys, testGetInvalidPOP, testGetInvalidPOPProperties, testGetNonExistingCCP, testGetNonExistingCCPProperties, testGetNonExistingPOP, testGetNonExistingPOPProperties, testGetPOPProperties, testGetPOPWithNullKeys, testGetPropertiesWithNullPortlet, testGetWithNullId, testInvokeCloneBeforeWriteWithUpdate, testInvokeReadOnlyWithUpdate, testInvokeReadWriteWithUpdate, testSetCCPProperties, testSetNonExistingCCPProperties, testSetPOPProperties, testSetPropertiesWithNullId, testSetPropertiesWithNullProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

persistLocally

protected final boolean persistLocally
.


producer

protected ProducerPortletInvoker producer
.


container

protected PortletInvokerSupport container
.


persistenceManager

protected ProducerPersistenceManagerService persistenceManager
.


stateManagementPolicy

protected StateManagementPolicyService stateManagementPolicy
.


stateConverter

protected StateConverterService stateConverter
.

Constructor Detail

ProducerStatefulPortletInvokerTestCase

protected ProducerStatefulPortletInvokerTestCase(boolean persistLocally)
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception

assertNoExistingState

protected void assertNoExistingState()
Specified by:
assertNoExistingState in class AbstractStatefulPortletInvokerTestCase

createPOPRef

protected java.lang.Object createPOPRef(PortletSupport portletSupport)
                                 throws PortletInvokerException
Specified by:
createPOPRef in class AbstractStatefulPortletInvokerTestCase
Throws:
PortletInvokerException

createNonExistingPOPRef

protected java.lang.Object createNonExistingPOPRef()
Specified by:
createNonExistingPOPRef in class AbstractStatefulPortletInvokerTestCase

createInvalidPOPRef

protected java.lang.Object createInvalidPOPRef()
Specified by:
createInvalidPOPRef in class AbstractStatefulPortletInvokerTestCase

createLocalClone

protected java.lang.Object createLocalClone(java.lang.Object portletRef)
                                     throws java.lang.Exception
Specified by:
createLocalClone in class AbstractStatefulPortletInvokerTestCase
Throws:
java.lang.Exception

destroyClone

protected void destroyClone(java.lang.Object portletRef)
                     throws java.lang.Exception
Specified by:
destroyClone in class AbstractStatefulPortletInvokerTestCase
Throws:
java.lang.Exception

createClone

protected java.lang.Object createClone(java.lang.Object portletRef)
                                throws PortletInvokerException
Specified by:
createClone in class AbstractStatefulPortletInvokerTestCase
Throws:
PortletInvokerException

setProperties

protected java.lang.Object setProperties(java.lang.Object portletRef,
                                         PropertyChange[] changes)
                                  throws PortletInvokerException
Specified by:
setProperties in class AbstractStatefulPortletInvokerTestCase
Throws:
PortletInvokerException

getProperties

protected PropertyMap getProperties(java.lang.Object portletRef)
                             throws PortletInvokerException
Specified by:
getProperties in class AbstractStatefulPortletInvokerTestCase
Throws:
PortletInvokerException

getProperties

protected PropertyMap getProperties(java.lang.Object portletRef,
                                    java.util.Set keys)
                             throws PortletInvokerException
Specified by:
getProperties in class AbstractStatefulPortletInvokerTestCase
Throws:
PortletInvokerException

destroyClones

protected java.util.List destroyClones(java.util.List portletRefs)
                                throws PortletInvokerException
Specified by:
destroyClones in class AbstractStatefulPortletInvokerTestCase
Throws:
PortletInvokerException

getPortlet

protected Portlet getPortlet(java.lang.Object portletRef)
                      throws PortletInvokerException
Specified by:
getPortlet in class AbstractStatefulPortletInvokerTestCase
Throws:
PortletInvokerException

getPortletId

protected java.lang.String getPortletId(java.lang.Object portletRef)
                                 throws PortletInvokerException
Specified by:
getPortletId in class AbstractStatefulPortletInvokerTestCase
Throws:
PortletInvokerException

invoke

protected void invoke(PortletInvocation invocation)
               throws PortletInvokerException
Specified by:
invoke in class AbstractStatefulPortletInvokerTestCase
Throws:
PortletInvokerException

createAction

protected ActionInvocation createAction(java.lang.Object portletRef,
                                        AccessMode accessMode)
Specified by:
createAction in class AbstractStatefulPortletInvokerTestCase

getImplicitClonedRef

protected java.lang.Object getImplicitClonedRef(ActionInvocation action)
Specified by:
getImplicitClonedRef in class AbstractStatefulPortletInvokerTestCase

getSinglePOP

private Portlet getSinglePOP()