« Return to Thread: Pojo matcher

Re: Pojo matcher

by tricpod :: Rate this Message:

Reply to Author | View in Thread

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


 « Return to Thread: Pojo matcher