February 2015
Intermediate to advanced
338 pages
8h 16m
English
PicoContainer is probably the simplest DI container on the JVM, which is why we’ve been using it. It’s certainly the simplest to integrate with Cucumber. Some of the other containers have more options, but PicoContainer is sufficient for most applications. The most likely reason to not use PicoContainer is that your application is already using another DI container.
Our use of PicoContainer is so unobtrusive that you may well have forgotten all about it by now. The only evidence that we’re even using it at all are two dependencies in our pom.xml:
| dependency_injection/pico/01/pom.xml | |
| | <dependency> |
| | <groupId>info.cukes</groupId> |
| | <artifactId>cucumber-picocontainer</artifactId> |
| | <version>${cucumber.version} ... |
Read now
Unlock full access