RFR: 8270836: Foolproof JavadocTester.checkOutput [v3]

Hannes Wallnöfer hannesw at openjdk.java.net
Mon Jul 19 08:58:47 UTC 2021


On Fri, 16 Jul 2021 16:10:30 GMT, Pavel Rappo <prappo at openjdk.org> wrote:

>> When searching output for multiple strings it is easy to misexpress your intent, which could make a failing test pass. Such cases can be caught and reported to the programmer.
>> 
>> For example, for this search to succeed it is sufficient for the output to consist only of the `"error: bad"` string:
>> 
>> 
>> checkOutput(..., "error:", "error: bad", ...)
>
> Pavel Rappo has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Address feedback

Just wondering: wouldn't this also be a problem for non-prefix-matching strings? E.g.:

`checkOutput(..., "error: bad", "bad", ...)`

-------------

PR: https://git.openjdk.java.net/jdk/pull/4811


More information about the javadoc-dev mailing list