org.jboss.cdi.tck.tests.context.conversation.filter
Class ConversationFilterTest

java.lang.Object
  extended by org.jboss.arquillian.testng.Arquillian
      extended by org.jboss.cdi.tck.AbstractTest
          extended by org.jboss.cdi.tck.tests.context.conversation.filter.ConversationFilterTest
All Implemented Interfaces:
org.testng.IHookable, org.testng.ITestNGListener

@SpecVersion(spec="cdi",
             version="20091101")
public class ConversationFilterTest
extends AbstractTest

Author:
Martin Kouba

Field Summary
protected  URL contextPath
           
 
Fields inherited from class org.jboss.cdi.tck.AbstractTest
beanManager
 
Fields inherited from class org.jboss.arquillian.testng.Arquillian
ARQUILLIAN_DATA_PROVIDER
 
Constructor Summary
ConversationFilterTest()
           
 
Method Summary
static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
           
 void testConversationActivation()
          The conversation context should not be active before the conversation is associated with the servlet request.
 void testConversationBusy()
          "The container ensures that a long-running conversation may be associated with at most one request at a time, by blocking or rejecting concurrent requests."
 
Methods inherited from class org.jboss.cdi.tck.AbstractTest
activate, annotationSetMatches, annotationSetMatches, destroyContext, getBeans, getBeans, getContextualReference, getContextualReference, getContextualReference, getCurrentConfiguration, getCurrentManager, getUniqueBean, getUniqueBean, isThrowablePresent, newDependentInstance, passivate, rawTypeSetMatches, setContextActive, setContextInactive, typeSetMatches
 
Methods inherited from class org.jboss.arquillian.testng.Arquillian
arquillianAfterClass, arquillianAfterSuite, arquillianAfterTest, arquillianArgumentProvider, arquillianBeforeClass, arquillianBeforeSuite, arquillianBeforeTest, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contextPath

@ArquillianResource
protected URL contextPath
Constructor Detail

ConversationFilterTest

public ConversationFilterTest()
Method Detail

createTestArchive

@Deployment(testable=false)
public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()

testConversationActivation

@SpecAssertions(value=@SpecAssertion(section="conversation_context",id="d"))
public void testConversationActivation()
                                throws Exception
The conversation context should not be active before the conversation is associated with the servlet request.

Throws:
Exception

testConversationBusy

@SpecAssertions(value=@SpecAssertion(section="conversation_context",id="ua"))
public void testConversationBusy()
                          throws Exception
"The container ensures that a long-running conversation may be associated with at most one request at a time, by blocking or rejecting concurrent requests." In fact the spec doesn't require the container to reject the concurrent requests, but we don't expect it will block them forever.

Throws:
Exception


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