diff --git a/plugins/testng/src/com/theoryinpractice/testng/intention/TestNGExternalLibraryResolver.java b/plugins/testng/src/com/theoryinpractice/testng/intention/TestNGExternalLibraryResolver.java index c2a0cbe3fcd2..2e710e2edcb1 100644 --- a/plugins/testng/src/com/theoryinpractice/testng/intention/TestNGExternalLibraryResolver.java +++ b/plugins/testng/src/com/theoryinpractice/testng/intention/TestNGExternalLibraryResolver.java @@ -15,19 +15,14 @@ */ package com.theoryinpractice.testng.intention; -import com.beust.jcommander.JCommander; import com.intellij.codeInsight.daemon.quickFix.ExternalLibraryResolver; import com.intellij.openapi.module.Module; import com.intellij.openapi.roots.ExternalLibraryDescriptor; -import com.intellij.util.PathUtil; import com.intellij.util.ThreeState; import com.intellij.util.containers.ContainerUtil; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import org.testng.annotations.Test; -import java.util.Arrays; -import java.util.List; import java.util.Set; /** @@ -38,13 +33,7 @@ public class TestNGExternalLibraryResolver extends ExternalLibraryResolver { "Test", "BeforeClass", "BeforeGroups", "BeforeMethod", "BeforeSuite", "BeforeTest", "AfterClass", "AfterGroups", "AfterMethod", "AfterSuite", "AfterTest", "Configuration" ); - public static final ExternalLibraryDescriptor TESTNG_DESCRIPTOR = new ExternalLibraryDescriptor("org.testng", "testng") { - @NotNull - @Override - public List getLibraryClassesRoots() { - return Arrays.asList(PathUtil.getJarPathForClass(Test.class), PathUtil.getJarPathForClass(JCommander.class)); - } - }; + public static final ExternalLibraryDescriptor TESTNG_DESCRIPTOR = new ExternalLibraryDescriptor("org.testng", "testng"); @Nullable @Override