test with a 3rd party jar file?

Chris Hegarty chris.hegarty at oracle.com
Wed Jun 26 13:18:32 UTC 2013

The streams package recently added tests for exercising package-private 

Top level dir contain the TEST.properties to add to the bootclasspath:


Example, individual test, whose test is in the java.util.stream package:



On 25/06/2013 01:51, huizhe wang wrote:
> Thanks Sean and Rob.
> Yes, I was told before to avoid shell scripts in tests. I'll wait till
> after your investigation to see what's the best to do in this case.
> -Joe
> On 6/24/2013 3:42 PM, Rob McKenna wrote:
>> Some interesting conversations were had lately about shell scripts
>> during Joe Darcy's recent infrastructure tech talk. In particular
>> around the idea of a "jdk.testing" package to provide libraries that
>> would help with the types of operations seen in shell scripts. I'm
>> really hoping to spend some time on this myself over the coming weeks.
>> (in an effort to at least understand why we need shell scripts and
>> whether we could do something else instead)
>> In any case it should be possible to simply replace the script with a
>> java program that does the same thing. That would require fiddling
>> with Process however, and its debatable as to whether that would
>> result in fewer test failures. (shell scripts counting for a
>> proportionally large number of those failures) JSR199 might help to
>> reduce the amount of ProcessBuilders required in this instance.
>>     -Rob

More information about the core-libs-dev mailing list