Permalink
Browse files

Test fix: spring test for gutter

  • Loading branch information...
1 parent 4a1e6d3 commit a78694e9be944aad97fc5d56db7705dc0cb44e99 @mglukhikh mglukhikh committed with mglukhikh Dec 21, 2016
@@ -63,11 +63,13 @@ abstract class AbstractSpringClassAnnotatorTest : KotlinLightCodeInsightFixtureT
}
val fileName = config.getString("file")
- val gutterMark = myFixture.findGutter(fileName)!!
-
val iconName = config.getString("icon")
val icon = SpringApiIcons::class.java.getField(iconName)[null]
- assert(gutterMark.icon == icon)
+
+ val gutterMark = myFixture.findGutter(fileName)!!.let {
+ if (it.icon == icon) it
+ else myFixture.findGuttersAtCaret().first { it.icon == icon }
+ }
val tooltip = config.getString("tooltip")
assert(gutterMark.tooltipText == tooltip)

0 comments on commit a78694e

Please sign in to comment.