Unit Test of standard lib

Roger Riggs Roger.Riggs at Oracle.com
Wed Oct 26 20:53:53 UTC 2016


The tests in the JDK has been accumulating for two plus decades and 
several different frameworks
have been used over time.  More recent tests use the TestNG framework as 
by jtreg.    Some developers prefer the direct usefulness of main with 
no extra work to
setup and run individual tests as is needed for debugging.

$.02, Roger

On 10/26/2016 4:43 PM, Abdessamed MANSOURI wrote:
> Hello all,
> I was looking about how Java do unit tests of its standard library and i've
> found in the code source of OpenJDK unit tests under test folder, my
> question is why Java uses direct unit tests (using main) and it doesn't use
> a powerfull framework as JUnit? i think it is possible to use it because
> unit tests of standard lib are already written in Java.

More information about the discuss mailing list