[Lift] Re: Mocking multiple models in a Snippet

2009-04-21 Thread erik.karls...@iki.fi
No worries. If you don't mind, please share whatever you end up with on the list so that others can benefit :) Sure! It is nothing fancy but here is what I did (some simple code to show): Snippet code: ... class TeamSnippet { def list(html: NodeSeq):NodeSeq = { val team =

[Lift] Re: Mocking multiple models in a Snippet

2009-04-19 Thread erik.karls...@iki.fi
Hi, Thanks for the idea. Actually I probably just had a bad day when when I sent this question. I tried to create mocks for those object classes (ClassName.type) but naturally I should create mocks for the trait of those model classes. For E2E testing I have been thinking something similar that

[Lift] Re: Mocking multiple models in a Snippet

2009-04-19 Thread Derek Chen-Becker
No worries. If you don't mind, please share whatever you end up with on the list so that others can benefit :) Derek On Sun, Apr 19, 2009 at 3:15 AM, erik.karls...@iki.fi erik.b.karls...@gmail.com wrote: Hi, Thanks for the idea. Actually I probably just had a bad day when when I sent this

[Lift] Re: Mocking multiple models in a Snippet

2009-04-18 Thread Derek Chen-Becker
Would using the run mode to determine to set up a Derby or HSQL DB for test purposes in your Boot class work? Usually I use this method combined with DBUnit to load test data. Derek On Fri, Apr 17, 2009 at 3:43 PM, erik.karls...@iki.fi erik.b.karls...@gmail.com wrote: Hi, I'm a little bit