Search in sources :

Example 96 with Disposable

use of com.intellij.openapi.Disposable in project intellij-community by JetBrains.

the class InvokerTest method testInvokeLaterOnBgThread.

@Test
public void testInvokeLaterOnBgThread() {
    Disposable parent = InvokerTest::dispose;
    testInvokeLater(parent, new Invoker.BackgroundThread(parent));
}
Also used : Disposable(com.intellij.openapi.Disposable) Test(org.junit.Test)

Example 97 with Disposable

use of com.intellij.openapi.Disposable in project intellij-community by JetBrains.

the class InvokerTest method testThreadChangingOnBgThreadFromBgPool.

@Test
public void testThreadChangingOnBgThreadFromBgPool() {
    Disposable parent = InvokerTest::dispose;
    testThreadChanging(parent, new Invoker.BackgroundThread(parent), new Invoker.BackgroundPool(parent), null);
}
Also used : Disposable(com.intellij.openapi.Disposable) Test(org.junit.Test)

Example 98 with Disposable

use of com.intellij.openapi.Disposable in project intellij-community by JetBrains.

the class InvokerTest method testQueueOnBgThread.

@Test
public void testQueueOnBgThread() {
    Disposable parent = InvokerTest::dispose;
    testQueue(parent, new Invoker.BackgroundThread(parent), true);
}
Also used : Disposable(com.intellij.openapi.Disposable) Test(org.junit.Test)

Example 99 with Disposable

use of com.intellij.openapi.Disposable in project intellij-community by JetBrains.

the class InvokerTest method testThreadChangingOnBgThreadFromEDT.

@Test
public void testThreadChangingOnBgThreadFromEDT() {
    Disposable parent = InvokerTest::dispose;
    testThreadChanging(parent, new Invoker.BackgroundThread(parent), new Invoker.EDT(parent), false);
}
Also used : Disposable(com.intellij.openapi.Disposable) Test(org.junit.Test)

Example 100 with Disposable

use of com.intellij.openapi.Disposable in project intellij-community by JetBrains.

the class InvokerTest method testThreadChangingOnBgThread.

@Test
public void testThreadChangingOnBgThread() {
    Disposable parent = InvokerTest::dispose;
    testThreadChanging(parent, new Invoker.BackgroundThread(parent));
}
Also used : Disposable(com.intellij.openapi.Disposable) Test(org.junit.Test)

Aggregations

Disposable (com.intellij.openapi.Disposable)282 NotNull (org.jetbrains.annotations.NotNull)52 Test (org.junit.Test)25 Project (com.intellij.openapi.project.Project)18 TestOnly (org.jetbrains.annotations.TestOnly)17 ArrayList (java.util.ArrayList)13 VirtualFile (com.intellij.openapi.vfs.VirtualFile)11 RelativePoint (com.intellij.ui.awt.RelativePoint)11 Nullable (org.jetbrains.annotations.Nullable)10 Document (com.intellij.openapi.editor.Document)9 File (java.io.File)9 ProcessHandler (com.intellij.execution.process.ProcessHandler)6 Editor (com.intellij.openapi.editor.Editor)6 ProgressIndicator (com.intellij.openapi.progress.ProgressIndicator)6 VirtualFilePointer (com.intellij.openapi.vfs.pointers.VirtualFilePointer)6 Content (com.intellij.ui.content.Content)6 ProcessCanceledException (com.intellij.openapi.progress.ProcessCanceledException)5 Alarm (com.intellij.util.Alarm)5 ActionEvent (java.awt.event.ActionEvent)5 ListSelectionEvent (javax.swing.event.ListSelectionEvent)5