Unit Test Class Path

Is there a way to add jar files to the classpath of the mock JDK instances in a unit test?

0

Hi,

you may call PsiTestUtil.addLibrary in the setup method. It would be attached as separate library then. If you need to modify sdk you may call modifications on the SdkModifier but I can not imagine why would you need this.

Thanks

0

请先登录再写评论。