Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
68 lines (50 sloc) 2.19 KB


We don't maintain this code base anymore. If you are interested in picking it up from where we left please reach out to us through Arquillian forum.

Seam 2 support for Arquillian

  • Test enrichment for @In injection points from the Seam 2 Context.
  • Packaging support for adding the Seam 2 framework.
  • Tested on JBoss AS 4.2.3.GA and 5.1.0.Final (both remote and managed).

For more details please refer to Arquillian Confluence.

Code example

public class FluidOuncesConverter

   public Double convertToMillilitres(Double ounces)
      return ounces * 29.5735296;


public class ComponentInjectionTestCase
   public static Archive<?> createDeployment()
      return ShrinkWrap.create(WebArchive.class, "test.war")
                       .addPackages(true, "org.fest")
                       .addPackages(true, "org.dom4j") // Required for JBoss AS 4.2.3.GA
                       .addAsResource(EmptyAsset.INSTANCE, "")

   FluidOuncesConverter fluidOuncesConverter;

   public void shouldInjectSeamComponent() throws Exception

   public void shouldConvertFluidOuncesToMillilitres() throws Exception
      // given
      Double ouncesToConver = Double.valueOf(8.0d);
      Double expectedMillilitres = Double.valueOf(236.5882368d);

      // when
      Double millilitres = fluidOuncesConverter.convertToMillilitres(ouncesToConver);

      // then


Note: if you will face problems fetching some dependencies add following Maven repositories.