Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ See also the [CHANGELOG](https://github.com/cucumber/cucumber-jvm/blob/master/CH

### Added

- [Scala] `ScalaSnippet` now implements `language()` method from `io.cucumber.core.backend.Snippet`

### Changed

- [Core] Update `cucumber-core` dependency to [7.29.0](https://github.com/cucumber/cucumber-jvm/blob/main/CHANGELOG.md)

### Deprecated

### Removed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package io.cucumber.scala
import java.lang.reflect.Type
import java.text.MessageFormat
import java.util.{Map => JMap}
import java.util.Optional

import io.cucumber.core.backend.Snippet
import io.cucumber.datatable.DataTable
Expand All @@ -20,6 +21,10 @@ class ScalaSnippet extends Snippet {

import ScalaSnippet.tripleDoubleQuotes

override def language(): Optional[String] = {
Optional.of("scala")
}

override def template(): MessageFormat = {
new MessageFormat(
s"""{0}(${tripleDoubleQuotes}{1}${tripleDoubleQuotes}) '{' ({3}) =>
Expand Down
Loading