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

V1ProducerBaseTest - JBOSS Portal 2.4 API 英文版文档


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

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
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
NeedPortletHandleTest, RegistrationTestCase, ServiceDescriptionTestCase

public abstract class V1ProducerBaseTest
extends WSRPProducerBaseTest

Since:
2.4

Field Summary
protected  WSRP_v1_Markup_PortType markupService
           
protected  WSRP_v1_PortletManagement_PortType portletManagementService
           
protected  WSRP_v1_Registration_PortType registrationService
           
protected  WSRP_v1_ServiceDescription_PortType 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
  V1ProducerBaseTest()
           
protected V1ProducerBaseTest(java.lang.String name)
           
 
Method Summary
 void assertEquals(MarkupType expected, MarkupType tested)
           
protected  void assertEquals(java.lang.String message, LocalizedString expected, LocalizedString tested)
           
 void checkBasicPortletDescription(PortletDescription desc, java.lang.String handle)
          Checks that the specified portlet description corresponds to the expected description of test-basic-portlet.
protected  ServiceDescription checkServiceDescriptionWithOnlyBasicPortlet(GetServiceDescription gs)
           
protected  RegistrationData createBaseRegData()
           
protected  GetServiceDescription getNoRegistrationServiceDescriptionRequest()
           
protected  PropertyDescription initRegistrationInfo()
           
protected  RegistrationContext registerConsumer()
           
protected  void resetRegistrationInfo()
           
protected  void tearDown()
           
 
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, deploy, getDeployer, getNodeManager, log, setDeployer, setNodeManager, undeploy
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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
 

Field Detail

registrationService

protected WSRP_v1_Registration_PortType registrationService

serviceDescriptionService

protected WSRP_v1_ServiceDescription_PortType serviceDescriptionService

markupService

protected WSRP_v1_Markup_PortType markupService

portletManagementService

protected WSRP_v1_PortletManagement_PortType portletManagementService
Constructor Detail

V1ProducerBaseTest

public V1ProducerBaseTest()
                   throws java.lang.Exception

V1ProducerBaseTest

protected V1ProducerBaseTest(java.lang.String name)
                      throws java.lang.Exception
Method Detail

tearDown

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

checkBasicPortletDescription

public void checkBasicPortletDescription(PortletDescription desc,
                                         java.lang.String handle)
Checks that the specified portlet description corresponds to the expected description of test-basic-portlet. If the handle parameter is not null, checks that it corresponds to the specified portlet decription.

Parameters:
desc - the tested PortletDescription
handle - the PortletHandle to be checked

assertEquals

public void assertEquals(MarkupType expected,
                         MarkupType tested)

checkServiceDescriptionWithOnlyBasicPortlet

protected ServiceDescription checkServiceDescriptionWithOnlyBasicPortlet(GetServiceDescription gs)
                                                                  throws java.lang.Exception
Throws:
java.lang.Exception

registerConsumer

protected RegistrationContext registerConsumer()
                                        throws org.jboss.portal.wsrp.core.MissingParametersFault,
                                               org.jboss.portal.wsrp.core.OperationFailedFault,
                                               java.rmi.RemoteException
Throws:
org.jboss.portal.wsrp.core.MissingParametersFault
org.jboss.portal.wsrp.core.OperationFailedFault
java.rmi.RemoteException

createBaseRegData

protected RegistrationData createBaseRegData()

initRegistrationInfo

protected PropertyDescription initRegistrationInfo()

resetRegistrationInfo

protected void resetRegistrationInfo()

getNoRegistrationServiceDescriptionRequest

protected GetServiceDescription getNoRegistrationServiceDescriptionRequest()

assertEquals

protected void assertEquals(java.lang.String message,
                            LocalizedString expected,
                            LocalizedString tested)