Placing tests in java.lang package (for testing protected methods)
Tomasz Kowalczewski
tomasz.kowalczewski at gmail.com
Tue May 26 09:04:18 UTC 2015
Hi,
I am trying to test a protected method of java.lang.String. Is this
possible with jtreg? If I specify:
* @run testng java.lang.StringIndexOfCharSequenceTest
*/
package java.lang;
I will (unsurprisingly) get "SecurityException: Prohibited package name:
java.lang". I was thinking that there may be some jtreg magic to circumvent
this?
--
Thanks,
Tomasz Kowalczewski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20150526/aa91d81d/attachment.html>
More information about the jtreg-use
mailing list