File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ import java.nio.file.Paths
50
50
import java.util.concurrent.TimeUnit
51
51
import org.utbot.common.filterWhen
52
52
import org.utbot.engine.util.mockListeners.ForceStaticMockListener
53
+ import org.utbot.intellij.plugin.util.isAbstract
53
54
import kotlin.reflect.KClass
54
55
import kotlin.reflect.full.functions
55
56
@@ -141,7 +142,7 @@ object UtTestsDialogProcessor {
141
142
.filterWhen(UtSettings .skipTestGenerationForSyntheticMethods) {
142
143
it.member !is SyntheticElement
143
144
}
144
- .filterNot { it.member.modifierList?.hasModifierProperty( PsiModifier . ABSTRACT ) ? : false }
145
+ .filterNot { it.isAbstract }
145
146
findMethodsInClassMatchingSelected(clazz, srcMethods)
146
147
}.executeSynchronously()
147
148
Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ import javax.swing.JList
128
128
import javax.swing.JPanel
129
129
import kotlin.streams.toList
130
130
import org.utbot.common.filterWhen
131
+ import org.utbot.intellij.plugin.util.isAbstract
131
132
132
133
private const val RECENTS_KEY = " org.utbot.recents"
133
134
@@ -362,7 +363,7 @@ class GenerateTestsDialogWindow(val model: GenerateTestsModel) : DialogWrapper(m
362
363
if (srcClasses.size == 1 ) {
363
364
items = TestIntegrationUtils .extractClassMethods(srcClasses.single(), false )
364
365
.filterWhen(UtSettings .skipTestGenerationForSyntheticMethods) { it.member !is SyntheticElement }
365
- .filterNot { it.member.modifierList?.hasModifierProperty( PsiModifier . ABSTRACT ) ? : false }
366
+ .filterNot { it.isAbstract }
366
367
updateMethodsTable(items)
367
368
} else {
368
369
items = srcClasses.map { MemberInfo (it) }
Original file line number Diff line number Diff line change
1
+ package org.utbot.intellij.plugin.util
2
+
3
+ import com.intellij.psi.PsiModifier
4
+ import com.intellij.psi.PsiModifierListOwner
5
+ import com.intellij.refactoring.classMembers.MemberInfoBase
6
+
7
+ val MemberInfoBase <out PsiModifierListOwner >.isAbstract: Boolean
8
+ get() = this .member.modifierList?.hasModifierProperty(PsiModifier .ABSTRACT )? : false
You can’t perform that action at this time.
0 commit comments