Closed bbq2100 closed 10 years ago
As regards the @Alternative debate, I would suggest to add Arquillian to BeanTest. With arquillian you can include/exclude classes through a very simple and powerful API.
Further it would be great to transform BeanTest in an Arquillian extension (or Arquillian container?), but this is a plus.
Hi Agori, I think with API you mean the ShrinkWrap API from Arquillian (http://arquillian.org/guides/shrinkwrap_introduction/), right? In #1 I also mentioned to include this feature in BeanTesting. As you said it will allow the user to create deployment descriptors individually for a specific test case.
@agori as @qabbasi mentioned. I think you are referring to ShrinkWrap. The API is quite good. However, the developer must enter every single dependency and class he wants to deploy for every test. In big projects (+15 modules) that can be a nightmare (been there), so I find that a little bit cumbersome for BeanTest. BeanTest should work with as little configuration as possible.
After squashing my commits, I will close this pull request.
This pull request provides altogether with small code clean-ups the requested deployment validation in #5 by @carlosbarragan. BeanTestExtension is now ensuring that a processed bean holds valid dependency injection points for its member i.e. the processed bean may hold exclusively field injection points or setter injection points for a particular bean member.