[Lift] How to write test case involving Mapper

2010-01-14 Thread Ferdinand Chan
Hi, I'm writing a unit test for a utility class that will make use of information of a Model class. Here is the sample code for the model class class Category extends LongKeyedMapper[Category] with IdPK{ def getSingleton = Category object parentCategoryId extends MappedLong(this) object

Re: [Lift] How to write test case involving Mapper

2010-01-14 Thread Naftoli Gugenheim
category.runSafe { ... } ? - Ferdinand Chanunique...@gmail.com wrote: Hi, I'm writing a unit test for a utility class that will make use of information of a Model class. Here is the sample code for the model class class Category extends

Re: [Lift] How to write test case involving Mapper

2010-01-14 Thread Jeppe Nejsum Madsen
Ferdinand Chan unique...@gmail.com writes: Hi, I'm writing a unit test for a utility class that will make use of information of a Model class. Here is the sample code for the model class class Category extends LongKeyedMapper[Category] with IdPK{ def getSingleton = Category object