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

NeedPortletHandleTest - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.test.wsrp.v1.producer
Class NeedPortletHandleTest

java.lang.Object
  extended byTestCase
      extended byorg.jboss.portal.test.wsrp.WSRPBaseTest
          extended byorg.jboss.portal.test.wsrp.WSRPProducerBaseTest
              extended byorg.jboss.portal.test.wsrp.v1.producer.V1ProducerBaseTest
                  extended byorg.jboss.portal.test.wsrp.v1.producer.NeedPortletHandleTest
Direct Known Subclasses:
MarkupTestCase, PortletManagementTestCase

public abstract class NeedPortletHandleTest
extends V1ProducerBaseTest

Since:
2.4
Version:
$Revision: 5493 $
Author:
Chris Laprun
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.jboss.portal.test.wsrp.WSRPBaseTest
WSRPBaseTest.DecoratedObject, WSRPBaseTest.Decorator
 
Field Summary
private  java.lang.String currentlyDeployedArchiveName
           
private  java.lang.String portletWARFileName
           
private  java.util.Map warFileName2handle
           
 
Fields inherited from class org.jboss.portal.test.wsrp.v1.producer.V1ProducerBaseTest
markupService, portletManagementService, registrationService, serviceDescriptionService
 
Fields inherited from class org.jboss.portal.test.wsrp.WSRPProducerBaseTest
producer, serviceFactory
 
Fields inherited from class org.jboss.portal.test.wsrp.WSRPBaseTest
 
Constructor Summary
  NeedPortletHandleTest(java.lang.String portletWARFileName)
           
protected NeedPortletHandleTest(java.lang.String name, java.lang.String portletWARFileName)
           
 
Method Summary
protected  void deploy(java.lang.String archiveName)
          Each time we deploy a new archive, check to see if the service description has changed and add any new portlet handles found.
protected  java.lang.String getDefaultHandle()
           
protected  java.lang.String getHandleForCurrentlyDeployedArchive()
           
protected  java.lang.String getHandleForPortletDeployedIn(java.lang.String archiveName)
           
private  void printMappings(java.lang.String when)
           
 void setUp()
          Make it accessible from outter packages.
protected  void tearDown()
           
protected  void undeploy(java.lang.String archiveName)
           
 
Methods inherited from class org.jboss.portal.test.wsrp.v1.producer.V1ProducerBaseTest
assertEquals, assertEquals, checkBasicPortletDescription, checkServiceDescriptionWithOnlyBasicPortlet, createBaseRegData, getNoRegistrationServiceDescriptionRequest, initRegistrationInfo, registerConsumer, resetRegistrationInfo
 
Methods inherited from class org.jboss.portal.test.wsrp.WSRPProducerBaseTest
getProducer, getServiceFactory, setProducer, setServiceFactory
 
Methods inherited from class org.jboss.portal.test.wsrp.WSRPBaseTest
assertEquals, assertEquals, assertString1ContainsString2, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

portletWARFileName

private java.lang.String portletWARFileName

warFileName2handle

private java.util.Map warFileName2handle

currentlyDeployedArchiveName

private java.lang.String currentlyDeployedArchiveName
Constructor Detail

NeedPortletHandleTest

public NeedPortletHandleTest(java.lang.String portletWARFileName)
                      throws java.lang.Exception

NeedPortletHandleTest

protected NeedPortletHandleTest(java.lang.String name,
                                java.lang.String portletWARFileName)
                         throws java.lang.Exception
Method Detail

getHandleForPortletDeployedIn

protected java.lang.String getHandleForPortletDeployedIn(java.lang.String archiveName)
                                                  throws org.jboss.portal.wsrp.core.OperationFailedFault,
                                                         org.jboss.portal.wsrp.core.InvalidRegistrationFault,
                                                         java.rmi.RemoteException
Throws:
org.jboss.portal.wsrp.core.OperationFailedFault
org.jboss.portal.wsrp.core.InvalidRegistrationFault
java.rmi.RemoteException

getDefaultHandle

protected java.lang.String getDefaultHandle()
                                     throws java.rmi.RemoteException,
                                            InvalidRegistrationFault,
                                            OperationFailedFault
Throws:
java.rmi.RemoteException
InvalidRegistrationFault
OperationFailedFault

getHandleForCurrentlyDeployedArchive

protected java.lang.String getHandleForCurrentlyDeployedArchive()
                                                         throws java.rmi.RemoteException,
                                                                InvalidRegistrationFault,
                                                                OperationFailedFault
Throws:
java.rmi.RemoteException
InvalidRegistrationFault
OperationFailedFault

deploy

protected void deploy(java.lang.String archiveName)
               throws java.lang.Exception
Each time we deploy a new archive, check to see if the service description has changed and add any new portlet handles found.

Overrides:
deploy in class WSRPBaseTest
Parameters:
archiveName -
Throws:
java.lang.Exception

printMappings

private void printMappings(java.lang.String when)

undeploy

protected void undeploy(java.lang.String archiveName)
                 throws java.lang.Exception
Overrides:
undeploy in class WSRPBaseTest
Throws:
java.lang.Exception

setUp

public void setUp()
           throws java.lang.Exception
Description copied from class: WSRPBaseTest
Make it accessible from outter packages.

Overrides:
setUp in class V1ProducerBaseTest
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class V1ProducerBaseTest
Throws:
java.lang.Exception