Skip to content

Commit 5de47ce

Browse files
committed
Update cucumber-jvm-scala and plugins
1 parent 7399b6a commit 5de47ce

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
ext.versions = [
22
scala : '2.12',
33
scalaFull : '2.12.11',
4-
gherkin : '202.5428.22',
5-
idea : '202.5428.22-EAP-SNAPSHOT',
6-
scalaPlugin: '2020.2.8'
4+
gherkin : '202.5958.19',
5+
idea : '202.5958.24-EAP-SNAPSHOT',
6+
scalaPlugin: '2020.2.12'
77
]
88

99
ext.libs = [
1010
jUnit : 'junit:junit:4.13',
1111
scala : "org.scala-lang:scala-library:${versions.scalaFull}",
12-
cucumberScala : "io.cucumber:cucumber-scala_${versions.scala}:5.7.0",
13-
cucumberJUnit : 'io.cucumber:cucumber-junit:5.7.0',
14-
scalatest : "org.scalatest:scalatest_${versions.scala}:3.1.2",
12+
cucumberScala : "io.cucumber:cucumber-scala_${versions.scala}:6.1.2",
13+
cucumberJUnit : 'io.cucumber:cucumber-junit:6.1.2',
14+
scalatest : "org.scalatest:scalatest_${versions.scala}:3.2.0",
1515
slf4j : "org.slf4j:slf4j-log4j12:1.7.30"
1616
]
1717

cucumber-scala/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ runIde {
3636
}
3737

3838
patchPluginXml {
39-
sinceBuild "202.5428"
40-
untilBuild "202.5428.*"
39+
sinceBuild "202.5958"
40+
untilBuild "202.5958.*"
4141
}
4242

4343
buildSearchableOptions.enabled = false

cucumber-scala/src/main/scala/com/github/vbmacher/intellij/cucumber/scala/steps/CucumberStep.scala

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import java.util
55
import CucumberStep.DT
66
import io.cucumber.core.gherkin
77
import io.cucumber.core.gherkin.{DataTableArgument, Step, StepType}
8-
import io.cucumber.core.internal.gherkin.GherkinDialectProvider
8+
import io.cucumber.gherkin.GherkinDialectProvider
9+
import io.cucumber.plugin.event.Location
910
import org.jetbrains.plugins.cucumber.psi.{GherkinStep, GherkinTable}
1011

1112
import scala.collection.JavaConverters._
@@ -27,26 +28,28 @@ class CucumberStep(step: GherkinStep) extends Step {
2728
if (table.nonEmpty) new DT(table.get) else null
2829
}
2930

30-
override val getKeyWord: String = step.getKeyword.getText
31-
3231
override def getType: StepType = {
33-
val keyword = getKeyWord.trim
32+
val keyword = getKeyword.trim
3433
if (StepType.isAstrix(keyword)) StepType.OTHER
3534
else {
3635
keywordStepType.getOrElse(
3736
keyword,
38-
throw new IllegalStateException("Keyword " + getKeyWord + " was neither given, when, then, and, but nor *")
37+
throw new IllegalStateException(s"Keyword $getKeyword was neither given, when, then, and, but nor *")
3938
)
4039
}
4140
}
4241

43-
override def getPreviousGivenWhenThenKeyWord: String = null
44-
4542
override def getText: String = step.getSubstitutedName
4643

4744
override def getId: String = step.getName
4845

4946
override def getLine: Int = 0
47+
48+
override val getPreviousGivenWhenThenKeyword: String = null
49+
50+
override val getKeyword: String = step.getKeyword.getText
51+
52+
override val getLocation: Location = null
5053
}
5154
object CucumberStep {
5255

0 commit comments

Comments
 (0)