disable test in headless environment, as it fails there

This commit is contained in:
Dmitry Batrak
2014-04-16 09:45:52 +04:00
parent b90a38f858
commit 998ca88446
@@ -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());