ok i finally got this sorted. it seems that i was making life too difficult by making tests transactional.
by removing the @transactional on unit tests everything works nice and simple. thanks for your help -lp On Nov 15, 4:51 pm, lp <lucio.picc...@gmail.com> wrote: > hi vikas > > thanks for the spring config. > > i got the same config but still cant get aunittestto persist data, > and then execute a query on it. > > i noticed that your config does not use > > <bean > class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" > / > > > > how does the entitymanager get injected? > > have u got the code available? i cant see what i am doing wrong! > > -lp > > On Nov 15, 3:02 pm, Vikas Hazrati <vhazr...@gmail.com> wrote: > > > hi lucio, > > > I have added the requested information as an answer to your comment on > > the blog post. > > >http://thoughts.inphina.com/2010/06/28/unit-testing-maven-based-jpa-a... > > > regards | Vikaswww.inphina.com > > > On Nov 15, 4:23 am, lp <lucio.picc...@gmail.com> wrote: > > > > hi vikas > > > > nice blog u have there. However i cant reproduce your results theunit > > >testwith spring. > > > can u post your spring config to see what i have done wrong. > > > > thanks > > > > -lp > > > > On Nov 13, 3:58 pm, Vikas Hazrati <vhazr...@gmail.com> wrote: > > > > > You could get more information on the way we set up our testing infra > > > > here > > > > >http://thoughts.inphina.com/2010/06/28/unit-testing-maven-based-jpa-a... > > > > > Regards | Vikaswww.inphina.com -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.