mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
disable test in headless environment, as it fails there
This commit is contained in:
+5
@@ -25,8 +25,11 @@ import com.intellij.openapi.keymap.ex.KeymapManagerEx;
|
||||
import com.intellij.testFramework.LightPlatformTestCase;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.awt.event.MouseEvent;
|
||||
|
||||
import static org.junit.Assume.assumeFalse;
|
||||
|
||||
public class IdeMouseEventDispatcherTest extends LightPlatformTestCase {
|
||||
private static final String OUR_KEYMAP_NAME = "IdeMouseEventDispatcherTestKeymap";
|
||||
private static final String OUR_TEST_ACTION = "IdeMouseEventDispatcherTestAction";
|
||||
@@ -38,6 +41,8 @@ public class IdeMouseEventDispatcherTest extends LightPlatformTestCase {
|
||||
private int myActionExecutionCount;
|
||||
|
||||
public void setUp() throws Exception {
|
||||
assumeFalse(GraphicsEnvironment.isHeadless());
|
||||
|
||||
super.setUp();
|
||||
|
||||
ActionManager.getInstance().registerAction(OUR_TEST_ACTION, new EmptyAction());
|
||||
|
||||
Reference in New Issue
Block a user