anirudha-wegilant / lambdaj

Automatically exported from code.google.com/p/lambdaj
Apache License 2.0
0 stars 0 forks source link

Please support describeTo() in OrMatcher/AndMatcher #102

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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