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