mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
migrated to LightPlatformTestCase
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user