Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.18 KB

README.md

File metadata and controls

44 lines (34 loc) · 1.18 KB

Cucumber CDI 2

This module relies on CDI Standalone Edition (CDI SE) API to start/stop a CDI container and customize it - adding steps. It looks up the beans/steps in CDI and if not available it instantiates it as POJO with CDI injection support - unmanaged bean.

Setup

To use it, it is important to provide your CDI SE implementation - likely Weld or Apache OpenWebBeans.

For Apache OpenWebBeans the dependency is:

<dependency>
  <groupId>org.apache.openwebbeans</groupId>
  <artifactId>openwebbeans-se</artifactId>
  <version>2.0.10</version>
  <scope>test</scope>
</dependency>

And for Weld it is:

<dependency>
  <groupId>org.jboss.weld.se</groupId>
  <artifactId>weld-se-core</artifactId>
  <version>3.1.1.Final</version>
  <scope>test</scope>
</dependency>

To ensure the module is compatible with all implementations and future API version, it does not transitively bring the API. If you don't know which one to use, you can import the following one but if you develop CDI code you should already have one provided:

<dependency>
  <groupId>javax.enterprise</groupId>
  <artifactId>cdi-api</artifactId>
  <version>2.0</version>
</dependency>