How was the first release of JDK Unit Tested?
Can someone please explain the following
- How was the开发者_运维百科 first JDK release unit Tested? Since Junit came after Java how did they do it?
- Are the current releases using Junit to test the JDK API?
Regards
The JDK is tested , at least now, using jtreg . I am not aware of any usage of JUnit to test the JDK.
Unit testing is a concept and a practice. It is not a package or specific implementation thereof (although it was admittedly popularised by JUnit).
I don't know what's the Sun, Oracle :-), standard is for testing. I'm sure it's pretty thorough though. Bear in mind there is more than on JDK publisher.
I imagine that the very first JDKs (pre Java 1.0) were tested using a harness implemented using other technologies; e.g. C, shell scripting, and so forth.
Certainly Java unit testing was done in Java well before JUnit came along. I remember using a framework developed in-house at DSTC in the late 1990s, and the GNU Classpath project used a framework called Mauve. Java test frameworks are not rocket science.
精彩评论