Hello everyone, I have been using Nhibernate and its Contrib and Fluent offsprings for a while to get a taste of this new framework, and i must say sometimes it feels like i bit more than i could swallow. Between the different building rules, the different tools and my own blunders, i'm far from having a unique workflow to build everything i need in one go.
Recently i found something that i found a little strange: the description of the bug can be found here:http://stackoverflow.com/ questions/1087489/nhibernate-search-lucene-and-the-criteria-api-types- mismatch Basically, when getting a IFullTextQuery for the type T, i try to add a criteria for the type T, but then a comparison is done between T.Name (on the FullTextQuery side) and T.Fullname (on the Criteria Side) and the query fails with the following exception: Criteria query entity should match query entity I wanted to submit a bug to JIRA, complete with unit test, so i went to http://nhforge.org/blogs/nhibernate/archive/2008/10/04/the-best-way-to-solve-nhibernate-bugs-submit-good-unit-test.aspx and downloaded the skeleton for submitting a unit test, but since it's a unit test for nhibernate, everything in the contrib is absent. I then did the next best thing and tried to include my test in the Nhibernate.Search.Tests solution to benefit from the existing setup (Lucene and all in memory, etc). But after some time wrestling with the configuration file to have it working on my environment, almost every test fails with the following exception under nunit 2.5: ***** NHibernate.Search.Tests.Query.LuceneQueryTest.UsingMixedApi 11:58:24,760 ERROR TestCase:74 - Error while setting up the test fixture NHibernate.Bytecode.HibernateByteCodeException: NHibernate.ByteCode.Castle.ProxyFactory does not implement NHibernate.Bytecode.IProxyFactoryFactory à NHibernate.Bytecode.AbstractBytecodeProvider.SetProxyFactoryFactory (String typeName) à NHibernate.Cfg.Configuration.ConfigureProxyFactoryFactory() à NHibernate.Cfg.Configuration.BuildSessionFactory() à NHibernate.Test.TestCase.BuildSessionFactory() dans R:\dev \NHibernate\Contrib\src\NHibernate.Search\src\NHibernate.Search.Tests \TestCase.cs:ligne 214 à NHibernate.Test.TestCase.TestFixtureSetUp() dans R:\dev\NHibernate \Contrib\src\NHibernate.Search\src\NHibernate.Search.Tests \TestCase.cs:ligne 70 Since i'm in the middle of the steep learning curve for everything nhibernate related, i must confess i'm a bit at a loss: does anyone see what i could be doing wrong? Versionning problems (although i got the whole nhcontrib trunk from subversion, so the lib folders should be correctly versionned)? I don't think it's configuration-related because the whole test branch "Cfg" runs correctly. The followup question is this one; is there another - perhaps more recent - visual studio solution that allows to create these tests for NHContrib in a simple way? Or should one use the Nhibernate.Search.Tests solution? Thank you very much for reading, for your patience, and for the work you've been putting on these tools. Samy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "NHibernate Contrib - Development Group" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com.ar/group/nhcdevs?hl=en -~----------~----~----~----~------~----~------~--~---
