« Return to Thread: Pojo matcher

Re: Pojo matcher

by tricpod :: Rate this Message:

Reply to Author | View in Thread

2009/6/5 Steve Freeman <steve@...>:
> Yes. A matcher intended for a bean will not work with a list.
>
> How about you tell us what you're actually trying to test, then we can help
> you.

Very nice. :-)

I want to compare a List of Entity. Your first idea was SamePropertyValuesAs.
But this don't works for list.

Something like:
If list size is the same check with SamePropertyValuesAs each entity.

>>
>> @Factory
>> public Matcher<List<Entity>> aPropertyValuesAsMatcher(
>>  final List<Entity> expected) {
>>      return new SamePropertyValuesAs<List<Entity>>(expected);
>> }

wkr Thomas

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

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Pojo matcher