amoikevin/lambdaj

Please support describeTo() in OrMatcher/AndMatcher

GoogleCodeExporter opened this issue · 0 comments

What steps will reproduce the problem?
If one uses LambdaJMatcher.or() / LambdaJMatcher.and() to create a matcher and 
then calls toString() on it, the returned String is empty.


What is the expected output? What do you see instead?
Empty string instead of nice description of the matcher.

What version of the product are you using? On what operating system?
2.4

Please provide any additional information below.

Suggested code:

public void describeTo(Description description) {
  description.appendList("(", " or/and ", ")", Arrays.asList(matchers));
}

Original issue reported on code.google.com by marti...@gmail.com on 28 Nov 2012 at 4:33