org.jboss.seam.faces.test.environment
Class ExternalContextProducerTest

java.lang.Object
  extended by org.jboss.seam.faces.test.environment.ExternalContextProducerTest

public class ExternalContextProducerTest
extends Object

Verify that the ExternalContextProducer produces the same ExternalContext as returned by FacesContext#getExternalContext() and the CDI producer method.

Author:
Dan Allen

Constructor Summary
ExternalContextProducerTest()
           
 
Method Summary
static org.jboss.shrinkwrap.api.Archive<?> createTestArchive()
           
 void testProducerThrowsExceptionWhenFacesContextNotActive()
           
 void testProducesContextualCurrentFacesContext()
           
 void testReturnsCurrentExternalContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalContextProducerTest

public ExternalContextProducerTest()
Method Detail

createTestArchive

@Deployment
public static org.jboss.shrinkwrap.api.Archive<?> createTestArchive()

testReturnsCurrentExternalContext

public void testReturnsCurrentExternalContext()

testProducesContextualCurrentFacesContext

public void testProducesContextualCurrentFacesContext()

testProducerThrowsExceptionWhenFacesContextNotActive

public void testProducerThrowsExceptionWhenFacesContextNotActive()


Copyright © 2009-2011 Seam Framework. All Rights Reserved.