[java] don't group "Create from usage" fixes in tests

This commit is contained in:
Daniil Ovchinnikov
2018-12-12 13:25:59 +03:00
parent ebb7d198a9
commit e110fd2ee7
3 changed files with 6 additions and 2 deletions
@@ -3,8 +3,12 @@ package com.intellij.lang.jvm.actions
import com.intellij.codeInsight.intention.IntentionAction
import com.intellij.lang.java.JavaLanguage
import com.intellij.openapi.application.ApplicationManager
internal fun List<IntentionAction>.groupActionsByType(): List<IntentionAction> {
if (ApplicationManager.getApplication().isUnitTestMode) {
return this
}
val groupableActions = filterIsInstance<JvmGroupIntentionAction>()
val result = minus(groupableActions).toMutableList()
val typeActions = groupableActions.groupBy { it.actionGroup }
@@ -1,4 +1,4 @@
// "Create method 'f'" "true"
// "Create method 'f' in 'Nested" "true"
public class CreateMethodTest {
public <T> void aMethod(final T t) {
class Nested {
@@ -1,4 +1,4 @@
// "Create method 'f'" "true"
// "Create method 'f' in 'Nested" "true"
public class CreateMethodTest {
public <T> void aMethod(final T t) {
class Nested {