org.jboss.jsr299.tck.tests.context.conversation
Class AbstractConversationTest

java.lang.Object
  extended by org.jboss.testharness.AbstractTest
      extended by org.jboss.jsr299.tck.AbstractJSR299Test
          extended by org.jboss.jsr299.tck.tests.context.conversation.AbstractConversationTest
All Implemented Interfaces:
org.testng.IHookable, org.testng.ITestNGListener
Direct Known Subclasses:
ClientConversationContextTest, InvalidatingSessionDestroysConversationTest, LongRunningConversationPropagatedByFacesContextTest, ManualCidPropagationTest

public abstract class AbstractConversationTest
extends AbstractJSR299Test


Field Summary
static String CID_HEADER_NAME
           
static String CID_REQUEST_PARAMETER_NAME
           
static String LONG_RUNNING_HEADER_NAME
           
 
Constructor Summary
AbstractConversationTest()
           
 
Method Summary
protected  String getCid(com.gargoylesoftware.htmlunit.Page page)
           
protected  String getConversationStatusPath(String method)
           
protected
<T> Set<T>
getElements(com.gargoylesoftware.htmlunit.html.HtmlElement rootElement, Class<T> elementClass)
           
protected
<T extends com.gargoylesoftware.htmlunit.html.HtmlElement>
T
getFirstMatchingElement(com.gargoylesoftware.htmlunit.html.HtmlPage page, Class<T> elementClass, String id)
           
protected  String getPath(String viewId)
           
protected  String getPath(String viewId, String cid)
           
protected  Boolean hasRained(com.gargoylesoftware.htmlunit.Page page)
           
protected  void invalidateSession(com.gargoylesoftware.htmlunit.WebClient client)
           
protected  boolean isCloudDestroyed(com.gargoylesoftware.htmlunit.WebClient client)
           
protected  Boolean isLongRunning(com.gargoylesoftware.htmlunit.Page page)
           
protected  void resetCloud(com.gargoylesoftware.htmlunit.WebClient client)
           
 
Methods inherited from class org.jboss.jsr299.tck.AbstractJSR299Test
annotationSetMatches, deserialize, destroyContext, getBeans, getBeans, getCurrentConfiguration, getCurrentManager, getInstanceByName, getInstanceByType, getInstanceByType, getUniqueBean, getUniqueBean, handleDeploymentFailure, rawTypeSetMatches, serialize, setContextActive, setContextInactive, typeSetMatches
 
Methods inherited from class org.jboss.testharness.AbstractTest
afterClass, afterMethod, afterSuite, beforeClass, beforeMethod, beforeSuite, getContextPath, isInContainer, isThrowablePresent, postCreate, run, setInContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CID_REQUEST_PARAMETER_NAME

public static final String CID_REQUEST_PARAMETER_NAME
See Also:
Constant Field Values

CID_HEADER_NAME

public static final String CID_HEADER_NAME
See Also:
Constant Field Values

LONG_RUNNING_HEADER_NAME

public static final String LONG_RUNNING_HEADER_NAME
See Also:
Constant Field Values
Constructor Detail

AbstractConversationTest

public AbstractConversationTest()
Method Detail

isCloudDestroyed

protected boolean isCloudDestroyed(com.gargoylesoftware.htmlunit.WebClient client)
                            throws Exception
Throws:
Exception

resetCloud

protected void resetCloud(com.gargoylesoftware.htmlunit.WebClient client)
                   throws Exception
Throws:
Exception

invalidateSession

protected void invalidateSession(com.gargoylesoftware.htmlunit.WebClient client)
                          throws Exception
Throws:
Exception

getConversationStatusPath

protected String getConversationStatusPath(String method)

getPath

protected String getPath(String viewId)

getPath

protected String getPath(String viewId,
                         String cid)

getElements

protected <T> Set<T> getElements(com.gargoylesoftware.htmlunit.html.HtmlElement rootElement,
                                 Class<T> elementClass)

getFirstMatchingElement

protected <T extends com.gargoylesoftware.htmlunit.html.HtmlElement> T getFirstMatchingElement(com.gargoylesoftware.htmlunit.html.HtmlPage page,
                                                                                               Class<T> elementClass,
                                                                                               String id)

getCid

protected String getCid(com.gargoylesoftware.htmlunit.Page page)

hasRained

protected Boolean hasRained(com.gargoylesoftware.htmlunit.Page page)

isLongRunning

protected Boolean isLongRunning(com.gargoylesoftware.htmlunit.Page page)


Copyright © 2008-2012 Seam Framework. All Rights Reserved.