February 2015
Intermediate to advanced
338 pages
8h 16m
English
The Java community have been working on a standardized approach to many of the challenges that software developers have to deal with. One of these is the Contexts and Dependency Injection for Java EE (CDI) standard, of which there are several implementations. Weld and OpenEJB are the two implementations that Cucumber is integrated with, but since they are so similar we’ll only show an example using Weld.
Again, we’ll start with the code as it was at the end of PicoContainer Is Almost Invisible. As before we change pom.xml to bring in the minimum dependency on our chosen DI framework:
| dependency_injection/weld/01/pom.xml | |
| | <dependency> |
| | <groupId>info.cukes</groupId> |
| | <artifactId>cucumber-weld</artifactId> |
| | <version> ... |
Read now
Unlock full access