TaskManagerTestCase: call super.tearDown() in finally block
authorYann Cébron <yann.cebron@jetbrains.com>
Thu, 20 Aug 2015 06:57:45 +0000 (08:57 +0200)
committerYann Cébron <yann.cebron@jetbrains.com>
Thu, 20 Aug 2015 06:57:45 +0000 (08:57 +0200)
plugins/tasks/tasks-tests/test/com/intellij/tasks/TaskManagerTestCase.java

index 8cd682f609d43f7742379e656322031a6c304246..895b92ae8b4e192b46f8e3c2b14ee11340a5c986 100644 (file)
@@ -16,7 +16,6 @@
 package com.intellij.tasks;
 
 import com.intellij.tasks.impl.TaskManagerImpl;
-import com.intellij.testFramework.IdeaTestCase;
 import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase;
 
 import java.util.Collections;
@@ -43,8 +42,8 @@ public abstract class TaskManagerTestCase extends LightCodeInsightFixtureTestCas
     }
     finally {
       myTaskManager = null;
+      super.tearDown();
     }
-    super.tearDown();
   }
 
   private void removeAllTasks() {