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

NeedPortletHandleTest - JBOSS Portal 2.4 API 英文版文档


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

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          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
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
MarkupTestCase, PortletManagementTestCase

public abstract class NeedPortletHandleTest
extends V1ProducerBaseTest

Since:
2.4

Field Summary
 
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, producerProxy, serviceFactory
 
Fields inherited from class org.jboss.portal.test.wsrp.WSRPBaseTest
deployer, initialized, nodeId, nodeManager, runtimeContext
 
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 getHandleForPortletDeployedIn(java.lang.String archiveName)
           
protected  void setUp()
           
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
getProducerProxy, getServiceFactory, setProducerProxy, setServiceFactory
 
Methods inherited from class org.jboss.portal.test.wsrp.WSRPBaseTest
assertEquals, assertString1ContainsString2, getDeployer, getNodeManager, log, setDeployer, setNodeManager
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

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

undeploy

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

setUp

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

tearDown

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