Tony, I'm glad you figured out the problem. Your blog post mentions that you have two hibernate.cfg.xml files in your project. This shouldn't be the case. I'd suggest deleting the one in src/test/resources. Maybe that will help solve this problem.
Matt On Thu, Feb 12, 2009 at 6:32 PM, tonylu880042 <tonylu880...@gmail.com>wrote: > > Hi, > The problem is solved. > I found the reason, that index is not generate in test environment, is > caused by the hibernate event mechanism not function properly (but I don't > understand why? bug or some setting miss...). > So, I change the automatic index generation to manually, then my action can > pass the action test. > If you are interest about the detail please check out > > http://tony880042.blogspot.com/2009/02/how-to-generate-compass-index-when.html > my blog > Best regards, > tony > > > tonylu880042 wrote: > > > > Hi All, > > I encouter a strange problem in my project with compass integreted. > > The problem is the compass did not generate index when using the junit > to > > test my action but the associated objects is create and persistence into > > database (I enabled the setComplete in my testcase). > > However, when I run the action in jetty, the index file can be created > > correctly. > > If I want to let compass can produce the index in my testcase what > should > > I do. > > Any advices will be appreciated. > > BR > > tony > > > > -- > View this message in context: > http://www.nabble.com/-Solved-Compass-index-not-gen-when-running-ActionTest-tp21935511s2369p21989075.html > Sent from the AppFuse - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > For additional commands, e-mail: users-h...@appfuse.dev.java.net > >