Skip to content

Commit

Permalink
Test fix: spring test for gutter
Browse files Browse the repository at this point in the history
  • Loading branch information
mglukhikh committed Dec 22, 2016
1 parent 4a1e6d3 commit a78694e
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -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)
Expand Down

0 comments on commit a78694e

Please sign in to comment.