Unit tests for OpenJDK?

Andrew Haley aph at redhat.com
Mon Apr 28 08:13:44 UTC 2014

On 04/27/2014 11:17 AM, Harry Simons wrote:
> Thanks for your response.
> Looks like, without a formal form-submission and form-approval process I
> will not be given JCK.
> May I ask the members in the community that without free and easy access to
> JCK to one and all, how on earth could an applications developer (like
> myself) possibly ever finish writing (complete with unit testing!) a custom
> file-system based on the FileSystemProvider API which Java itself provides?
> If not the full JCK, I think the powers-that-be should provide to all
> application developers, freely and easily, at least a subset of the JCK
> that covers nontrivial API such as FileSystemProvider!
> Wonder, how other developers like myself would handle this situation.

There are (at least) three kinds of Java tests.  There are the
regression tests in OpenJDK which are fully open, the JCK which is
licenced but free to use for OpenJDK users, and a some Oracle-only
internal tests.

The JCK tests an implementation for Java compatibility, so it'll not
stress your FileSystemProvider.

There are also some test suites that are external to OpenJDK itself,
such as jcstress for concurrency.


More information about the discuss mailing list