RFR: 8285452: Add a new test library API to replace a file content using FileUtils.java [v7]

Lance Andersen lancea at openjdk.java.net
Fri Apr 29 17:07:50 UTC 2022


On Fri, 29 Apr 2022 12:29:35 GMT, Sibabrata Sahoo <ssahoo at openjdk.org> wrote:

>> A new API to support replacing selective lines with desired content.
>
> Sibabrata Sahoo has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8285452: updated to use lines()

test/jdk/java/nio/file/Files/FileUtilsTest.java line 111:

> 109:         test(abcList, 1, 3, "ab", xyz, "xyz");
> 110:     }
> 111: 

Any thought of using TestNG with a DataProvider?  Seems more efficient

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

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


More information about the core-libs-dev mailing list