views:

77

answers:

1

I'm writing an implementation of an interface provided by Sun and I'm wondering if anyone knows of the availability of unit tests for Sun's APIs.

It would seem that such of thing would be available, but I'm having a hard time finding them. Specifically, I'm looking for BlockingQueue tests (ie: a test for LinkedBlockingQueue that I could trivially alter to use my class), but would be happy to know about others for future use. It seems like wasted effort if everyone who implements an interface has to write their own tests for it.

I'm not familiar with Java compatibility tests, but maybe I should be looking there.

Thanks for your help.

+2  A: 

Take a look at the JCK home page. You might also look at Doug Lea's JSR-166 page for other information.

Darron
The JCK is more-or-less what I was looking for, but its license prohibits compiling or executing it. The JSR-166 page had exactly what I was looking for (under JSR Maintenance Updates.) It covers java.util.concurrent, but if anyone knows of similar resources for other packages, please post them.
Red Sparrow