RFR 8142926: OutputAnalyzer's shouldXXX() calls return this
Alan Bateman
Alan.Bateman at oracle.com
Fri Nov 13 12:16:42 UTC 2015
On 13/11/2015 09:20, Wang Weijun wrote:
> Hi All
>
> 8142926: OutputAnalyzer's shouldXXX() calls return this
> http://cr.openjdk.java.net/~weijun/8142926/webrev.00/
>
> With this change, you can write output.shouldA().shouldB().shouldC().
>
> Do I need to write a test for testlibrary?
>
This looks okay to me. There is another OutputAnalyzer in the hotspot
repo and it seems to have been changed there already.
I assume that once tests start making use of the method innovation
chaining that they will be tested.
-Alan.
More information about the core-libs-dev
mailing list