JacksonDefaultDataTableEntryTransformer

io.cucumber.scala.JacksonDefaultDataTableEntryTransformer

This trait register a DefaultDataTableEntryTransformer using Jackson ObjectMapper.

The [empty] string is used as default empty string replacement. You can override it if you need to.

Note: Jackson is not included with Cucumber Scala, you have to add the dependency: com.fasterxml.jackson.module:jackson-module-scala_2.xx to your project if you want to use this trait.

Attributes

Graph
Supertypes
trait ScalaDsl
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Inherited classlikes

final class DataTableTypeBody(replaceWithEmptyString: Seq[String])

Attributes

Inherited from:
DataTableTypeDsl (hidden)
Graph
Supertypes
class Object
trait Matchable
class Any
final class HookBody(hookType: ScopedHookType, tagExpression: String, order: Int, frame: StackTraceElement)

Attributes

Inherited from:
HookDsl (hidden)
Graph
Supertypes
class Object
trait Matchable
class Any
final class ParameterTypeBody(name: String, regex: String)

Attributes

Inherited from:
ParameterTypeDsl (hidden)
Graph
Supertypes
class Object
trait Matchable
class Any
final class StaticHookBody(hookType: StaticHookType, order: Int, frame: StackTraceElement)

Attributes

Inherited from:
HookDsl (hidden)
Graph
Supertypes
class Object
trait Matchable
class Any
final class Step(name: String)

Attributes

Inherited from:
StepDsl (hidden)
Graph
Supertypes
class Object
trait Matchable
class Any
final class StepBody(name: String, regex: String)

Attributes

Inherited from:
StepDsl (hidden)
Graph
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def createObjectMapper(): ObjectMapper

Create the Jackson ObjectMapper to be used. Default is a simple ObjectMapper with DefaultScalaModule registered.

Create the Jackson ObjectMapper to be used. Default is a simple ObjectMapper with DefaultScalaModule registered.

Attributes

Define the string to be used as replacement for empty. Default is [empty].

Define the string to be used as replacement for empty. Default is [empty].

Attributes

Inherited methods

def After(tagExpression: String, order: Int): HookBody

Defines and after hook.

Defines and after hook.

Attributes

order

the order in which this hook should run. Higher numbers are run first

tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Inherited from:
HookDsl (hidden)
def After(order: Int): HookBody

Defines and after hook.

Defines and after hook.

Attributes

order

the order in which this hook should run. Higher numbers are run first

Inherited from:
HookDsl (hidden)
def After(tagExpression: String): HookBody

Defines and after hook.

Defines and after hook.

Attributes

tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Inherited from:
HookDsl (hidden)

Defines and after hook.

Defines and after hook.

Attributes

Inherited from:
HookDsl (hidden)
def AfterAll(order: Int): StaticHookBody

Defines a after all hook.

Defines a after all hook.

Attributes

order

the order in which this hook should run. Higher numbers are run first

Inherited from:
HookDsl (hidden)

Defines a after all hook.

Defines a after all hook.

Attributes

Inherited from:
HookDsl (hidden)
def AfterStep(tagExpression: String, order: Int): HookBody

Defines and after step hook.

Defines and after step hook.

Attributes

order

the order in which this hook should run. Higher numbers are run first

tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Inherited from:
HookDsl (hidden)
def AfterStep(order: Int): HookBody

Defines and after step hook.

Defines and after step hook.

Attributes

order

the order in which this hook should run. Higher numbers are run first

Inherited from:
HookDsl (hidden)
def AfterStep(tagExpression: String): HookBody

Defines and after step hook.

Defines and after step hook.

Attributes

tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Inherited from:
HookDsl (hidden)

Defines and after step hook.

Defines and after step hook.

Attributes

Inherited from:
HookDsl (hidden)
def Before(tagExpression: String, order: Int): HookBody

Defines an before hook.

Defines an before hook.

Attributes

order

the order in which this hook should run. Higher numbers are run first

tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Inherited from:
HookDsl (hidden)
def Before(order: Int): HookBody

Defines an before hook.

Defines an before hook.

Attributes

order

the order in which this hook should run. Higher numbers are run first

Inherited from:
HookDsl (hidden)
def Before(tagExpression: String): HookBody

Defines an before hook.

Defines an before hook.

Attributes

tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Inherited from:
HookDsl (hidden)

Defines an before hook.

Defines an before hook.

Attributes

Inherited from:
HookDsl (hidden)
def BeforeAll(order: Int): StaticHookBody

Defines a before all hook.

Defines a before all hook.

Attributes

order

the order in which this hook should run. Higher numbers are run first

Inherited from:
HookDsl (hidden)

Defines a before all hook.

Defines a before all hook.

Attributes

Inherited from:
HookDsl (hidden)
def BeforeStep(tagExpression: String, order: Int): HookBody

Defines an before step hook.

Defines an before step hook.

Attributes

order

the order in which this hook should run. Higher numbers are run first

tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Inherited from:
HookDsl (hidden)
def BeforeStep(order: Int): HookBody

Defines an before step hook.

Defines an before step hook.

Attributes

order

the order in which this hook should run. Higher numbers are run first

Inherited from:
HookDsl (hidden)
def BeforeStep(tagExpression: String): HookBody

Defines an before step hook.

Defines an before step hook.

Attributes

tagExpression

a tag expression, if the expression applies to the current scenario this hook will be executed

Inherited from:
HookDsl (hidden)

Defines an before step hook.

Defines an before step hook.

Attributes

Inherited from:
HookDsl (hidden)
def DataTableType(replaceWithEmptyString: String): DataTableTypeBody

Register a data table type with a replacement.

Register a data table type with a replacement.

A data table can only represent absent and non-empty strings. By replacing a known value (for example [empty]) a data table can also represent empty strings.

Attributes

replaceWithEmptyString

a string that will be replaced with an empty string.

Inherited from:
DataTableTypeDsl (hidden)

Register a data table type.

Register a data table type.

Attributes

Inherited from:
DataTableTypeDsl (hidden)
def DefaultDataTableCellTransformer(replaceWithEmptyString: String)(body: DefaultDataTableCellTransformerBody): Unit

Register default data table cell transformer with a replacement.

Register default data table cell transformer with a replacement.

A data table can only represent absent and non-empty strings. By replacing a known value (for example [empty]) a data table can also represent empty strings. *

Attributes

body

converts String argument to an instance of the Type argument

replaceWithEmptyString

a string that will be replaced with an empty string.

Inherited from:
DefaultTransformerDsl (hidden)

Register default data table cell transformer.

Register default data table cell transformer.

Attributes

body

converts String argument to an instance of the Type argument

Inherited from:
DefaultTransformerDsl (hidden)
def DefaultDataTableEntryTransformer(replaceWithEmptyString: String)(body: DefaultDataTableEntryTransformerBody): Unit

Register default data table cell transformer with a replacement.

Register default data table cell transformer with a replacement.

A data table can only represent absent and non-empty strings. By replacing a known value (for example [empty]) a data table can also represent empty strings.

Attributes

body

converts Map[String,String] argument to an instance of the Type argument

replaceWithEmptyString

a string that will be replaced with an empty string.

Inherited from:
DefaultTransformerDsl (hidden)

Register default data table entry transformer.

Register default data table entry transformer.

Attributes

body

converts Map[String,String] argument to an instance of the Type argument

Inherited from:
DefaultTransformerDsl (hidden)

Register default parameter type transformer.

Register default parameter type transformer.

Attributes

body

converts String argument to an instance of the Type argument

Inherited from:
DefaultTransformerDsl (hidden)
def DocStringType[T](contentType: String)(body: () => T)(implicit ev: Stepable[T]): Unit

Register doc string type.

Register doc string type.

Attributes

T

type to convert to

body

a function that creates an instance of T from the doc string

contentType

Name of the content type.

Inherited from:
DocStringTypeDsl (hidden)
def ParameterType(name: String, regex: String): ParameterTypeBody

Register parameter type.

Register parameter type.

Attributes

name

used as the type name in typed expressions

regex

expression to match

See also:
Inherited from:
ParameterTypeDsl (hidden)

Inherited fields

Attributes

Inherited from:
BaseScalaDsl (hidden)

Attributes

Inherited from:
BaseScalaDsl (hidden)

Attributes

Inherited from:
BaseScalaDsl (hidden)
val NO_REPLACEMENT: Seq[String]

Attributes

Inherited from:
BaseScalaDsl (hidden)