Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ronsmits/cdi-basic-example
https://github.com/ronsmits/cdi-basic-example
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/ronsmits/cdi-basic-example
- Owner: ronsmits
- Created: 2016-10-11T18:36:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-11T20:54:57.000Z (over 8 years ago)
- Last Synced: 2024-11-14T08:51:29.739Z (2 months ago)
- Language: Java
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple CDI example
After the discussion about CDI, the question remained what would happen if a
bean implements two interfaces and those two interfaces are both injected.The code in `src/test/java/org/superbiz/cdi/basic/DoubleInterfaceServiceTest.java`
shows this.# The test framework
To make this test as simple as possible I am using the `ejbcontainer` from the
`javax.ejb.embedded` package with **Tomee** as implementation. This way no setup is
needed to make the tests run with the injection.