Re: [appengine-java] Re: Trouble unit testing JPA data access objects.

2010-11-08 Thread Lucio Piccoli
hi didier

i would like to see your unit test config and your spring config.
can u post pls.

thanks

-lp

On Fri, Nov 5, 2010 at 12:12 PM, Lucio Piccoli wrote:

> hi didier,
>
> i did follow the google unit test doc.
> But my issue is using the spring tx with JPA in unit test.
> ii cant seem to get my entity manager bound to a tx.
>
> if u have any ideas or spring config it would be most appreciated.
>
> thanks
> -lp
>
>
> On Thu, Nov 4, 2010 at 11:17 PM, Didier Durand wrote:
>
>> Hi Ip,
>>
>> do you correctly initiate your local env for the datastore: see
>>
>> http://code.google.com/appengine/docs/java/tools/localunittesting.html#Writing_Datastore_Tests
>>
>> You should then get an active transaction when needed. Let me know if
>> needed: can provide you with my own code when needed
>>
>> regards
>>
>> didier
>>
>> On Nov 4, 12:10 pm, lp  wrote:
>> > how did u get your unit tests to run in tx?
>> >
>> > i cant seem to get an active transaction.
>> >
>> > i followed all the links in this thread and more.
>> >
>> > any help appreciated
>> >
>> > -lp
>>
>> --
>> 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.
>>
>>
>

-- 
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.



Re: [appengine-java] Re: Trouble unit testing JPA data access objects.

2010-11-04 Thread Lucio Piccoli
hi didier,

i did follow the google unit test doc.
But my issue is using the spring tx with JPA in unit test.
ii cant seem to get my entity manager bound to a tx.

if u have any ideas or spring config it would be most appreciated.

thanks
-lp


On Thu, Nov 4, 2010 at 11:17 PM, Didier Durand wrote:

> Hi Ip,
>
> do you correctly initiate your local env for the datastore: see
>
> http://code.google.com/appengine/docs/java/tools/localunittesting.html#Writing_Datastore_Tests
>
> You should then get an active transaction when needed. Let me know if
> needed: can provide you with my own code when needed
>
> regards
>
> didier
>
> On Nov 4, 12:10 pm, lp  wrote:
> > how did u get your unit tests to run in tx?
> >
> > i cant seem to get an active transaction.
> >
> > i followed all the links in this thread and more.
> >
> > any help appreciated
> >
> > -lp
>
> --
> 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.
>
>

-- 
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.