liangzai-cool / hamcrest

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

Add format string appender to Description #87

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice if Description had an

appendString(String format, Object ... args){
   appendText(String.format(format, args));
}

method, so that I didn't have to do String format.  I understand the 
current api, and why it exists, but most of my matchers are really simple, 
and are just doing one or two string substitutions which is made easier by 
String.format().

Original issue reported on code.google.com by step...@kestle.homeip.net on 4 Jun 2009 at 11:56

GoogleCodeExporter commented 9 years ago
I don't see what this adds. You can just call String.format(format, args) 
yourself.

Original comment by smgfree...@gmail.com on 5 Jun 2009 at 9:14