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

MarkupTestCase - JBOSS Portal 2.6 API 英文版文档


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

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
                      extended byorg.jboss.portal.test.wsrp.v1.producer.MarkupTestCase

public class MarkupTestCase
extends NeedPortletHandleTest

Since:
2.4
Version:
$Revision: 5487 $
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 static java.lang.String DEFAULT_MARKUP_PORTLET_WAR
           
private static java.lang.String DEFAULT_VIEW_MARKUP
           
 
Fields inherited from class org.jboss.portal.test.wsrp.v1.producer.NeedPortletHandleTest
 
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
MarkupTestCase()
           
 
Method Summary
private  MarkupContext checkMarkupResponse(MarkupResponse response, java.lang.String markupString)
           
private  void checkMarkupResponseWithSession(MarkupResponse response, int count)
           
private  java.lang.String checkPBIAndGetNavigationalState(java.lang.String symbol)
           
private  GetMarkup createMarkupRequest()
           
private  GetMarkup createMarkupRequest(java.lang.String archiveName)
          Creates a valid Markup request.
private  java.lang.String extractLink(java.lang.String markupString, int fromIndex)
           
 void testGetMarkupEditNoSession()
           
 void testGetMarkupRenderParameters()
           
 void testGetMarkupSession()
           
 void testGetMarkupViewNoSession()
           
 void testGetMarkupWithDispatcherPortlet()
           
 void testGetMarkupWithEncodedURLs()
           
 void testGetMarkupWithNoContent()
           
 void testGetMarkupWithNonStandardLocales()
           
 void testGetMarkupWithUserContext()
           
 void testGMAndPBIInteraction()
           
 void testInvalidGetMarkup()
           
 void testMarkupCaching()
           
 void testPerformBlockingInteractionNoRedirect()
           
 void testPerformBlockingInteractionRedirect()
           
 
Methods inherited from class org.jboss.portal.test.wsrp.v1.producer.NeedPortletHandleTest
deploy, getDefaultHandle, getHandleForCurrentlyDeployedArchive, getHandleForPortletDeployedIn, setUp, tearDown, undeploy
 
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

DEFAULT_VIEW_MARKUP

private static final java.lang.String DEFAULT_VIEW_MARKUP
See Also:
Constant Field Values

DEFAULT_MARKUP_PORTLET_WAR

private static final java.lang.String DEFAULT_MARKUP_PORTLET_WAR
See Also:
Constant Field Values
Constructor Detail

MarkupTestCase

public MarkupTestCase()
               throws java.lang.Exception
Method Detail

testGetMarkupViewNoSession

public void testGetMarkupViewNoSession()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testInvalidGetMarkup

public void testInvalidGetMarkup()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testGetMarkupEditNoSession

public void testGetMarkupEditNoSession()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testGetMarkupRenderParameters

public void testGetMarkupRenderParameters()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

extractLink

private java.lang.String extractLink(java.lang.String markupString,
                                     int fromIndex)

testGetMarkupSession

public void testGetMarkupSession()
                          throws java.lang.Exception
Throws:
java.lang.Exception

checkMarkupResponseWithSession

private void checkMarkupResponseWithSession(MarkupResponse response,
                                            int count)
                                     throws java.rmi.RemoteException,
                                            InvalidRegistrationFault,
                                            OperationFailedFault
Throws:
java.rmi.RemoteException
InvalidRegistrationFault
OperationFailedFault

testPerformBlockingInteractionNoRedirect

public void testPerformBlockingInteractionNoRedirect()
                                              throws java.lang.Exception
Throws:
java.lang.Exception

checkPBIAndGetNavigationalState

private java.lang.String checkPBIAndGetNavigationalState(java.lang.String symbol)
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

testPerformBlockingInteractionRedirect

public void testPerformBlockingInteractionRedirect()
                                            throws java.lang.Exception
Throws:
java.lang.Exception

testGMAndPBIInteraction

public void testGMAndPBIInteraction()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testMarkupCaching

public void testMarkupCaching()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testGetMarkupWithDispatcherPortlet

public void testGetMarkupWithDispatcherPortlet()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

testGetMarkupWithNoContent

public void testGetMarkupWithNoContent()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testGetMarkupWithNonStandardLocales

public void testGetMarkupWithNonStandardLocales()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

testGetMarkupWithEncodedURLs

public void testGetMarkupWithEncodedURLs()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testGetMarkupWithUserContext

public void testGetMarkupWithUserContext()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

checkMarkupResponse

private MarkupContext checkMarkupResponse(MarkupResponse response,
                                          java.lang.String markupString)

createMarkupRequest

private GetMarkup createMarkupRequest(java.lang.String archiveName)
                               throws java.lang.Exception
Creates a valid Markup request.

Parameters:
archiveName -
Returns:
a basic, valid GetMarkup object representing the markup request
Throws:
java.lang.Exception

createMarkupRequest

private GetMarkup createMarkupRequest()
                               throws java.lang.Exception
Throws:
java.lang.Exception