RFR: 8304014: Convert test/jdk/java/util/zip/ZipFile/CorruptedZipFiles.java to junit [v3]
Eirik Bjorsnos
duke at openjdk.org
Wed Mar 29 18:15:42 UTC 2023
> CorruptedZipFiles could benefit from some spring cleaning and a conversion to testNG:
>
> - The actual tests are moved into their own `@Test` methods, given more meaningful names and a Javadoc comment explaining the constraint being verified
> - The setup code is moved to a `@Before` method, slightly modernized and rewritten to take advantage of `assertEquals`
> - `checkZipExceptionImpl` is updated to take advantage of `expectThrows`
> - A bunch of constants copied over from `ZipFile` can be deleted since JDK-6225935 has long been fixed
Eirik Bjorsnos has updated the pull request incrementally with one additional commit since the last revision:
Junit version
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/12563/files
- new: https://git.openjdk.org/jdk/pull/12563/files/e46fc5b3..892e166a
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=12563&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=12563&range=01-02
Stats: 24 lines in 1 file changed: 3 ins; 0 del; 21 mod
Patch: https://git.openjdk.org/jdk/pull/12563.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/12563/head:pull/12563
PR: https://git.openjdk.org/jdk/pull/12563
More information about the core-libs-dev
mailing list