Open stokito opened 6 years ago
Sorry, I am not quite sure what you are requesting here.
@kcooney , I've described a couple of cases in the following issues:
For opentest4j
, it might be relevant for ValueWrapper
:
Currently, the user has to provide stringRepresentation
manually.
However, when no stringRepresentation
is provided, the compiler could infer and provide a decent fallback.
For instance, suppose the user writes ValueWrapper.create(resultSet.next())
, and the compiler transforms it into ValueWrapper(resultSet.next(), "resultSet.next()")
.
Then users get better-than-nothing representations while they still write tests as usual. Of course, it won't completely replace human-provided messages, however, it would still be helpful.
Please take this project too under your umbrella https://github.com/jkschneider/java-power-assert I can't tell you exactly what it may need to change but it's better to notify authors