mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
trying to load custom plugin in tests
This commit is contained in:
@@ -1049,7 +1049,7 @@ public class PluginManager {
|
||||
PluginId pluginId = pluginDescriptor.getPluginId();
|
||||
File pluginRoot = pluginDescriptor.getPath();
|
||||
|
||||
if (isUnitTestMode()) return null;
|
||||
if (classPath.length == 0) return null;
|
||||
try {
|
||||
final List<URL> urls = new ArrayList<URL>(classPath.length);
|
||||
for (File aClassPath : classPath) {
|
||||
|
||||
@@ -416,6 +416,7 @@ public class FSRecords implements Forceable {
|
||||
myRecords.close();
|
||||
myRecords = null;
|
||||
}
|
||||
ourInitialized = false;
|
||||
}
|
||||
|
||||
private static void markClean() {
|
||||
|
||||
@@ -25,6 +25,7 @@ import com.intellij.util.io.URLUtil;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.annotations.TestOnly;
|
||||
|
||||
import java.io.*;
|
||||
import java.net.URL;
|
||||
@@ -429,4 +430,9 @@ public class PathManager {
|
||||
}
|
||||
return new File(getHomePath() + File.separator + "community" + File.separator + "lib" + File.separator + relativePath);
|
||||
}
|
||||
|
||||
@TestOnly
|
||||
public static void cleanup() {
|
||||
ourPluginsPath = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user