[hibernate-dev] Unit test failures using the new metamodel

Gail Badner gbadner at redhat.com
Fri Aug 3 17:25:41 EDT 2012



----- Original Message -----
> From: "John Verhaeg" <jverhaeg at redhat.com>
> To: "Hardy Ferentschik" <hardy at hibernate.org>
> Cc: "Gail Badner" <gbadner at redhat.com>, "Hibernate hibernate-dev" <hibernate-dev at lists.jboss.org>
> Sent: Friday, August 3, 2012 2:21:02 PM
> Subject: Re: [hibernate-dev] Unit test failures using the new metamodel
> 
> 
> On Aug 3, 2012, at 6:39 AM, Hardy Ferentschik wrote:
> 
> > As I said before, the problem is that
> > @FailureExpectedWithNewMetamodel is not honored by
> > BaseCoreFunctionalTestCase when
> > an error occurs in the setup (BeforeClass handlers). We could try
> > to address this in BaseCoreFunctionalTestCase, but in this case I
> > decided
> > to move BaseAnnotationBindingTestCase into the testing module and
> > make it the base class for these tests. I was using this base
> > class for
> > testing some annotation based binding tests and it is imo much more
> > suitable for the tests above.
> 
> Again, not sure why you're saying this.  The annotation is indeed
> honored in the setup.   That's where most of the errors where
> occurring before the annotation was applied.
> 
> > 
> > Right now we have the hibernate-core module passing with the new
> > metamodel enabled and the expected failures validated. Hopefully
> > we can
> > keep it this way.
> 
> Until we finish work on the metamodel, it's still going to be
> important to run the tests twice, once with the metamodel flag on,
> once off, and check in only if there are no errors for either run.
+1
> 
> JPAV
> 
> 
> 
> 
> 


More information about the hibernate-dev mailing list