From 6f1645a6eb6d906f0f79ee47a4b7daf39d952cd9 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Fri, 24 Sep 2021 22:03:13 +0200 Subject: [PATCH] [tests] change icon to warning when test would be created in production root GitOrigin-RevId: c0c32ce459523077bfba8477332cd5d43373ccfe --- .../intellij/testIntegration/createTest/CreateTestAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/java-impl/src/com/intellij/testIntegration/createTest/CreateTestAction.java b/java/java-impl/src/com/intellij/testIntegration/createTest/CreateTestAction.java index c75066055fe5..b20b8925ef48 100644 --- a/java/java-impl/src/com/intellij/testIntegration/createTest/CreateTestAction.java +++ b/java/java-impl/src/com/intellij/testIntegration/createTest/CreateTestAction.java @@ -1,4 +1,4 @@ -// 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. +// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.testIntegration.createTest; import com.intellij.codeInsight.CodeInsightBundle; @@ -106,7 +106,7 @@ public class CreateTestAction extends PsiElementBaseIntentionAction { testModule = srcModule; if (!propertiesComponent.getBoolean(CREATE_TEST_IN_THE_SAME_ROOT)) { if (Messages.showOkCancelDialog(project, JavaBundle.message("dialog.message.create.test.in.the.same.source.root"), - JavaBundle.message("dialog.title.no.test.roots.found"), Messages.getQuestionIcon()) != + JavaBundle.message("dialog.title.no.test.roots.found"), Messages.getWarningIcon()) != Messages.OK) { return; }