RFR: 8334562: Automate com/sun/security/auth/callback/TextCallbackHandler/Default.java test [v2]
Fernando Guallini
fguallini at openjdk.org
Thu Jun 27 15:37:46 UTC 2024
On Thu, 27 Jun 2024 12:48:00 GMT, Weijun Wang <weijun at openjdk.org> wrote:
>> @wangweij
>> I was handling the callback in 2 separate calls because it was blocking and timing out while waiting for input. Now, using _HumanInputStream_ allows handling it in a single call. Unfortunately this class is not visible for this jteg test. To compile it properly, I would need to include the following annotations in the test:
>>
>> * @modules java.base/sun.security.tools.keytool
>> * java.base/sun.security.util
>> * java.base/sun.security.x509
>> * @compile ../../../../../../sun/security/tools/keytool/KeyToolTest.java
>>
>> But, this would couple both tests together. would it be useful extracting HumanInputStream into a common library class?
>
> Sure, you can put it into `test/jdk/java/security/testlibrary`. I'm not sure if it's mature enough to be put into `test/lib`.
Ok, it's moved now and updated the tests
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19790#discussion_r1657356010
More information about the security-dev
mailing list