From 2da5ba2436945cb6de37670a92b7d2badf74505d Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Tue, 6 Nov 2018 19:05:45 +0100 Subject: [PATCH] delete not relevant anymore test --- .../actions/EditRunConfigurationsTest.java | 29 ------------------- 1 file changed, 29 deletions(-) delete mode 100644 platform/lang-impl/testSources/com/intellij/execution/actions/EditRunConfigurationsTest.java diff --git a/platform/lang-impl/testSources/com/intellij/execution/actions/EditRunConfigurationsTest.java b/platform/lang-impl/testSources/com/intellij/execution/actions/EditRunConfigurationsTest.java deleted file mode 100644 index bc23a10da0f1..000000000000 --- a/platform/lang-impl/testSources/com/intellij/execution/actions/EditRunConfigurationsTest.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -package com.intellij.execution.actions; - -import com.intellij.openapi.actionSystem.*; -import com.intellij.testFramework.MapDataContext; -import com.intellij.testFramework.PlatformTestCase; - -import javax.swing.*; -import java.awt.event.MouseEvent; -import java.util.Arrays; - -import static com.intellij.testFramework.assertions.Assertions.assertThat; - -public class EditRunConfigurationsTest extends PlatformTestCase { - @SuppressWarnings("OptionalGetWithoutIsPresent") - public void testAvailableForDefaultProject() { - final MouseEvent mouseEvent = new MouseEvent(new JPanel(), -1, 0, 0, 0, 0, 1, true); - final AnActionEvent event = new AnActionEvent(mouseEvent, new MapDataContext(), ActionPlaces.UNKNOWN, new Presentation(), ActionManager.getInstance(), 0); - AnAction editRunConfigurationAction = Arrays.stream(((ActionGroup)ActionManager.getInstance().getAction(IdeActions.GROUP_WELCOME_SCREEN_CONFIGURE)).getChildren(event)) - .filter(action -> action instanceof EditRunConfigurationTemplatesForNewProjectsAction) - .findFirst() - .get(); - - editRunConfigurationAction.update(event); - Presentation presentation = event.getPresentation(); - assertThat(presentation.isEnabled()).isTrue(); - assertThat(presentation.isVisible()).isTrue(); - } -}