File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
cucumber-scala/src/main/scala/io/cucumber/scala Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,12 @@ See also the [CHANGELOG](https://github.com/cucumber/cucumber-jvm/blob/master/CH
11
11
12
12
### Added
13
13
14
+ - [ Scala] ` ScalaSnippet ` now implements ` language() ` method from ` io.cucumber.core.backend.Snippet `
15
+
14
16
### Changed
15
17
18
+ - [ Core] Update ` cucumber-core ` dependency to [ 7.29.0] ( https://github.com/cucumber/cucumber-jvm/blob/main/CHANGELOG.md )
19
+
16
20
### Deprecated
17
21
18
22
### Removed
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package io.cucumber.scala
3
3
import java .lang .reflect .Type
4
4
import java .text .MessageFormat
5
5
import java .util .{Map => JMap }
6
+ import java .util .Optional
6
7
7
8
import io .cucumber .core .backend .Snippet
8
9
import io .cucumber .datatable .DataTable
@@ -20,6 +21,10 @@ class ScalaSnippet extends Snippet {
20
21
21
22
import ScalaSnippet .tripleDoubleQuotes
22
23
24
+ override def language (): Optional [String ] = {
25
+ Optional .of(" scala" )
26
+ }
27
+
23
28
override def template (): MessageFormat = {
24
29
new MessageFormat (
25
30
s """ {0}( ${tripleDoubleQuotes}{1} ${tripleDoubleQuotes}) '{' ({3}) =>
You can’t perform that action at this time.
0 commit comments