« Return to Thread: Pojo matcher

Re: Pojo matcher

by Steve Freeman-2 :: Rate this Message:

Reply to Author | View in Thread

I'm confused. You want to match a list of entity objects?

S.

On 4 Jun 2009, at 14:12, Thomas Richter wrote:

> Hi,
> with JMock1.2 it would probably work, if I had no list ...
>
> one(mocked).method(with(aPropertyValuesAsMatcher(expected)));
>
> @Factory
> public Matcher<List<Entity>> aPropertyValuesAsMatcher(
>    final List<Entity> expected) {
>        return new SamePropertyValuesAs<List<Entity>>(expected);
> }
>
> some Ideas?
>
> wkr T. (Thomas)
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>

Steve Freeman
Winner of the Agile Alliance Gordon Pask award 2006

http://www.m3p.co.uk

M3P Limited.
Registered office. 2 Church Street, Burnham, Bucks, SL1 7HZ.
Company registered in England & Wales. Number 03689627



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Pojo matcher