Now I'm seeing the following failures with the old metadata (using hibernate.test.new_metadata_mappings=false): Test org.hibernate.test.annotations.interfaces.InterfacesTest FAILED Test org.hibernate.test.annotations.lob.VersionedLobTest FAILED Test org.hibernate.test.annotations.idmanytoone.alphabetical.AlphabeticalIdManyToOneTest FAILED
It looks like BaseAnnotationBindingTestCase is hard-coded to use the new metamodel, since it fails for the new metamodel, it still fails with hibernate.test.new_metadata_mappings=false. ----- Original Message ----- > From: "John Verhaeg" <jverh...@redhat.com> > To: "Hardy Ferentschik" <ha...@hibernate.org> > Cc: "Gail Badner" <gbad...@redhat.com>, "Hibernate hibernate-dev" > <hibernate-dev@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. > > JPAV > > > > > _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev