mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix for: show project leaking path in tests Alexey Kudravtsev 23.03.2017 14:41
This commit is contained in:
@@ -389,11 +389,11 @@ public abstract class PlatformTestCase extends UsefulTestCase implements DataPro
|
||||
}
|
||||
|
||||
public static void cleanupApplicationCaches(Project project) {
|
||||
UndoManagerImpl globalInstance = (UndoManagerImpl)UndoManager.getGlobalInstance();
|
||||
if (globalInstance != null) {
|
||||
globalInstance.dropHistoryInTests();
|
||||
}
|
||||
if (project != null && !project.isDisposed()) {
|
||||
UndoManagerImpl globalInstance = (UndoManagerImpl)UndoManager.getGlobalInstance();
|
||||
if (globalInstance != null) {
|
||||
globalInstance.dropHistoryInTests();
|
||||
}
|
||||
((UndoManagerImpl)UndoManager.getInstance(project)).dropHistoryInTests();
|
||||
((DocumentReferenceManagerImpl)DocumentReferenceManager.getInstance()).cleanupForNextTest();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user