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

ConsumerStatefulPortletInvokerTestCase - JBOSS Portal 2.6 API 英文版文档


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

java.lang.Object
  extended byTestCase
      extended byorg.jboss.portal.test.portlet.state.AbstractStatefulPortletInvokerTestCase
          extended byorg.jboss.portal.test.portlet.state.ConsumerStatefulPortletInvokerTestCase
Direct Known Subclasses:
LocalStoreConsumerStatefulPortletInvokerTestCase, RemoteStoreConsumerStatefulPortletInvokerTestCase

public class ConsumerStatefulPortletInvokerTestCase
extends AbstractStatefulPortletInvokerTestCase

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

Field Summary
protected  ConsumerPortletInvoker consumer
          .
protected  ConsumerPersistenceManagerService consumerPersistenceManager
          .
protected  PortletInvokerSupport container
          .
protected  boolean persistLocally
          .
protected  ProducerPortletInvoker producer
          .
protected  ProducerPersistenceManagerService producerPersistenceManager
          .
protected  StateConverterService stateConverter
          .
protected  StateManagementPolicyService stateManagementPolicy
          .
 
Constructor Summary
ConsumerStatefulPortletInvokerTestCase(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  java.lang.Object getModifiedPortletRef(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, 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
.


consumer

protected ConsumerPortletInvoker consumer
.


consumerPersistenceManager

protected ConsumerPersistenceManagerService consumerPersistenceManager
.


producer

protected ProducerPortletInvoker producer
.


container

protected PortletInvokerSupport container
.


producerPersistenceManager

protected ProducerPersistenceManagerService producerPersistenceManager
.


stateManagementPolicy

protected StateManagementPolicyService stateManagementPolicy
.


stateConverter

protected StateConverterService stateConverter
.

Constructor Detail

ConsumerStatefulPortletInvokerTestCase

public ConsumerStatefulPortletInvokerTestCase(boolean persistLocally)
Method Detail

setUp

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

getPortlet

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

createPOPRef

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

createNonExistingPOPRef

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

createInvalidPOPRef

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

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

assertNoExistingState

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

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

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

getModifiedPortletRef

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

getSinglePOP

private Portlet getSinglePOP()
                      throws PortletInvokerException
Throws:
PortletInvokerException