diff --git a/plugins/tasks/tasks-tests/test/com/intellij/tasks/TaskManagerTest.java b/plugins/tasks/tasks-tests/test/com/intellij/tasks/TaskManagerTest.java index 44689926bbae..698c24100fe3 100644 --- a/plugins/tasks/tasks-tests/test/com/intellij/tasks/TaskManagerTest.java +++ b/plugins/tasks/tasks-tests/test/com/intellij/tasks/TaskManagerTest.java @@ -49,7 +49,7 @@ public class TaskManagerTest extends TaskManagerTestCase { count.set(count.get() + 1); } }; - myTaskManager.addTaskListener(listener, myFixture.getTestRootDisposable()); + myTaskManager.addTaskListener(listener, getTestRootDisposable()); LocalTask localTask = myTaskManager.createLocalTask("foo"); myTaskManager.activateTask(localTask, false); assertEquals(1, count.get().intValue()); @@ -62,7 +62,7 @@ public class TaskManagerTest extends TaskManagerTestCase { public void testNotifications() { final Ref notificationRef = new Ref<>(); - getProject().getMessageBus().connect(myFixture.getTestRootDisposable()).subscribe(Notifications.TOPIC, new NotificationsAdapter() { + getProject().getMessageBus().connect(getTestRootDisposable()).subscribe(Notifications.TOPIC, new NotificationsAdapter() { @Override public void notify(@NotNull Notification notification) { notificationRef.set(notification); diff --git a/plugins/tasks/tasks-tests/test/com/intellij/tasks/TaskManagerTestCase.java b/plugins/tasks/tasks-tests/test/com/intellij/tasks/TaskManagerTestCase.java index 775b965c55f5..15f89df5f57e 100644 --- a/plugins/tasks/tasks-tests/test/com/intellij/tasks/TaskManagerTestCase.java +++ b/plugins/tasks/tasks-tests/test/com/intellij/tasks/TaskManagerTestCase.java @@ -17,7 +17,7 @@ package com.intellij.tasks; import com.intellij.openapi.util.Couple; import com.intellij.tasks.impl.TaskManagerImpl; -import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase; +import com.intellij.testFramework.LightPlatformTestCase; import org.jetbrains.annotations.NotNull; import java.text.SimpleDateFormat; @@ -28,7 +28,7 @@ import java.util.TimeZone; /** * @author Dmitry Avdeev */ -public abstract class TaskManagerTestCase extends LightCodeInsightFixtureTestCase { +public abstract class TaskManagerTestCase extends LightPlatformTestCase { protected static final SimpleDateFormat SHORT_TIMESTAMP_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm"); static { SHORT_TIMESTAMP_FORMAT.setTimeZone(TimeZone.getTimeZone("UTC"));