migrated to LightPlatformTestCase

This commit is contained in:
Dmitry Avdeev
2018-12-13 16:19:54 +03:00
parent df22ea3b00
commit c896a6ecd9
2 changed files with 4 additions and 4 deletions
@@ -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<Notification> 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);
@@ -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"));