开发者

How was the first release of JDK Unit Tested?

开发者 https://www.devze.com 2022-12-24 09:57 出处:网络
Can someone please explain the following How was the开发者_运维百科 first JDK release unit Tested? Since Junit came after Java how did they do it?

Can someone please explain the following

  1. How was the开发者_运维百科 first JDK release unit Tested? Since Junit came after Java how did they do it?
  2. 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.


  1. Unit testing is a concept and a practice. It is not a package or specific implementation thereof (although it was admittedly popularised by JUnit).

  2. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号