RichFaces Arquillian Test Commons 4.3.3.Final

org.richfaces.deployment
Class Deployment

java.lang.Object
  extended by org.richfaces.deployment.Deployment

public class Deployment
extends Object

Provides base for all test deployments

Author:
Lukas Fryc

Constructor Summary
protected Deployment(Class<?> testClass)
          Constructs base deployment with: archive named by test case empty faces-config.xml web.xml with default FacesServlet mapping, welcome file index.xhtml and disabled some features which are not necessary by default and Development stage turned on
 
Method Summary
 Deployment addMavenDependency(String... dependencies)
          Adds maven artifact as library dependency
 org.jboss.shrinkwrap.api.spec.WebArchive archive()
          Provides WebArchive available for modifications
 Deployment excludeMavenDependency(String... dependencies)
          Adds patters for Maven library dependency exclusion
 void facesConfig(com.google.common.base.Function<org.jboss.shrinkwrap.descriptor.api.facesconfig20.WebFacesConfigDescriptor,org.jboss.shrinkwrap.descriptor.api.facesconfig20.WebFacesConfigDescriptor> transform)
          Allows to modify contents of faces-config.xml.
 org.jboss.shrinkwrap.api.spec.WebArchive getFinalArchive()
          Returns the final testable archive - packages all the resources which were configured separately
 void webXml(com.google.common.base.Function<org.jboss.shrinkwrap.descriptor.api.webapp30.WebAppDescriptor,org.jboss.shrinkwrap.descriptor.api.webapp30.WebAppDescriptor> transform)
          Allows to modify contents of web.xml.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Deployment

protected Deployment(Class<?> testClass)
Constructs base deployment with:

Parameters:
testClass -
Method Detail

archive

public org.jboss.shrinkwrap.api.spec.WebArchive archive()
Provides WebArchive available for modifications


getFinalArchive

public org.jboss.shrinkwrap.api.spec.WebArchive getFinalArchive()
Returns the final testable archive - packages all the resources which were configured separately


facesConfig

public void facesConfig(com.google.common.base.Function<org.jboss.shrinkwrap.descriptor.api.facesconfig20.WebFacesConfigDescriptor,org.jboss.shrinkwrap.descriptor.api.facesconfig20.WebFacesConfigDescriptor> transform)
Allows to modify contents of faces-config.xml. Takes function which transforms original faces-config.xml and returns modified one


webXml

public void webXml(com.google.common.base.Function<org.jboss.shrinkwrap.descriptor.api.webapp30.WebAppDescriptor,org.jboss.shrinkwrap.descriptor.api.webapp30.WebAppDescriptor> transform)
Allows to modify contents of web.xml. Takes function which transforms original web.xml and returns modified one


addMavenDependency

public Deployment addMavenDependency(String... dependencies)
Adds maven artifact as library dependency


excludeMavenDependency

public Deployment excludeMavenDependency(String... dependencies)
Adds patters for Maven library dependency exclusion


RichFaces Arquillian Test Commons 4.3.3.Final

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.