On Sun, May 10, 2009 at 3:17 AM, [email protected] <
[email protected]> wrote:

>
> Hi,
>
> It may happen that this post appears twice to this forum - in that
> case sorry for the double posting ;)


New users are moderated to avoid spam... on weekends, it may take up to a
day for postings to appear on list.


>
>
> Anyhow, I have following case. For unit test case I would need to be
> able to define what is the value the id field in ProtoUser returns. I
> know that I could handle this by just creating a mock object of the
> ProtoUser but is there a way to actually get a write access to the id
> field in the real class to change it?


You should be able to do:

myUserInstance.id(55L)

That should set it to 55.

Please give that a try.

Thanks,

David


>
>
> Thanks beforehand,
>
> - Erik
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to