with:

mvn test -Ptomee-build-managed -Dtomee.version=1.6.0-SNAPSHOT
-Dowb.version=1.2.1-SNAPSHOT

i get the injection, then the constraint validator is not enriched but not
sure we read validation.xml in WEB-INF/classes/META-INF, probably just in
WEB-INF as mentionned in the spec (i know others can do something different)


*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/6/12 John D. Ament <[email protected]>

> @Romain
>
>
> https://github.com/johnament/deltaspike/blob/master/deltaspike/modules/beanval/impl/src/test/java/org/apache/deltaspike/beanval/test/InjectedValidationTest.java
>
> When the validator here is @Inject rather than created using @Before, it's
> not injected in the test case.
>
> John
>
>
> On Wed, Jun 12, 2013 at 12:37 AM, Romain Manni-Bucau
> <[email protected]>wrote:
>
> > Hi
> >
> > It is supported and tested.
> >
> > What's your case?
> > Le 12 juin 2013 06:09, "Howard W. Smith, Jr." <[email protected]> a
> > écrit :
> >
> > > John,
> > >
> > > Wow, this is a coincidence and interesting. We have been discussing
> > > TomEE/CDI topics, and now you bring this up. Please click the following
> > URL
> > > and read that. :)
> > >
> > > http://code.google.com/p/omnifaces/issues/detail?id=183
> > >
> > > Howard
> > >
> > >
> > >
> > >
> > > On Tue, Jun 11, 2013 at 10:23 PM, John D. Ament <
> [email protected]
> > > >wrote:
> > >
> > > > Hi all
> > > >
> > > > In section 3.6 of the CDI spec, it indicates that the Validator
> > > > (javax.validation.Validator) should be a built in bean, meaning the
> > > > container should support injection of it.  I was testing something
> > > locally
> > > > and i noticed that TomEE wasn't injecting this object.
> > > >
> > > > Is this expected?
> > > >
> > > > John
> > > >
> > >
> >
>

Reply via email to