hardayal / hamcrest

Automatically exported from code.google.com/p/hamcrest
0 stars 0 forks source link

Alias for StringDescription.toString #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice to be able to statically import
StringDescription.toString(Matcher), but because the name collides with
Object.toString, it can't be done.  Can we instead create an alias? 
descriptionOf(Matcher)?  asString(Matcher)?

Actually, I think it would be fair to override Object.toString in
BaseMatcher, although I can see API reasons to avoid that.

Original issue reported on code.google.com by david.s...@gmail.com on 9 May 2007 at 3:49

GoogleCodeExporter commented 8 years ago
Good idea. Added StringDescription.asString() and BaseMatcher.toString() - 
which is
now a lot easier because the core API has merged into a single jar.

Original comment by joe.wal...@gmail.com on 21 May 2007 at 9:53