trait JacksonDefaultDataTableEntryTransformer extends ScalaDsl
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.
- Alphabetic
- By Inheritance
- JacksonDefaultDataTableEntryTransformer
- ScalaDsl
- DefaultTransformerDsl
- ParameterTypeDsl
- DocStringTypeDsl
- DataTableTypeDsl
- HookDsl
- StepDsl
- BaseScalaDsl
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final class DataTableTypeBody extends AnyRef
- Definition Classes
- DataTableTypeDsl
- final class Fun0 extends AnyRef
- Definition Classes
- StepDsl
- final class HookBody extends AnyRef
- Definition Classes
- HookDsl
- final class ParameterTypeBody extends AnyRef
- Definition Classes
- ParameterTypeDsl
- final class Step extends AnyRef
- Definition Classes
- StepDsl
- final class StepBody extends AnyRef
- Definition Classes
- StepDsl
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def After(tagExpression: String, order: Int): HookBody
Defines and after hook.
Defines and after hook.
- tagExpression
a tag expression, if the expression applies to the current scenario this hook will be executed
- order
the order in which this hook should run. Higher numbers are run first
- Definition Classes
- HookDsl
- def After(order: Int): HookBody
Defines and after hook.
Defines and after hook.
- order
the order in which this hook should run. Higher numbers are run first
- Definition Classes
- HookDsl
- def After(tagExpression: String): HookBody
Defines and after hook.
Defines and after hook.
- tagExpression
a tag expression, if the expression applies to the current scenario this hook will be executed
- Definition Classes
- HookDsl
- def After: HookBody
Defines and after hook.
Defines and after hook.
- Definition Classes
- HookDsl
- def AfterStep(tagExpression: String, order: Int): HookBody
Defines and after step hook.
Defines and after step hook.
- tagExpression
a tag expression, if the expression applies to the current scenario this hook will be executed
- order
the order in which this hook should run. Higher numbers are run first
- Definition Classes
- HookDsl
- def AfterStep(order: Int): HookBody
Defines and after step hook.
Defines and after step hook.
- order
the order in which this hook should run. Higher numbers are run first
- Definition Classes
- HookDsl
- def AfterStep(tagExpression: String): HookBody
Defines and after step hook.
Defines and after step hook.
- tagExpression
a tag expression, if the expression applies to the current scenario this hook will be executed
- Definition Classes
- HookDsl
- def AfterStep: HookBody
Defines and after step hook.
Defines and after step hook.
- Definition Classes
- HookDsl
- def Before(tagExpression: String, order: Int): HookBody
Defines an before hook.
Defines an before hook.
- tagExpression
a tag expression, if the expression applies to the current scenario this hook will be executed
- order
the order in which this hook should run. Higher numbers are run first
- Definition Classes
- HookDsl
- def Before(order: Int): HookBody
Defines an before hook.
Defines an before hook.
- order
the order in which this hook should run. Higher numbers are run first
- Definition Classes
- HookDsl
- def Before(tagExpression: String): HookBody
Defines an before hook.
Defines an before hook.
- tagExpression
a tag expression, if the expression applies to the current scenario this hook will be executed
- Definition Classes
- HookDsl
- def Before: HookBody
Defines an before hook.
Defines an before hook.
- Definition Classes
- HookDsl
- def BeforeStep(tagExpression: String, order: Int): HookBody
Defines an before step hook.
Defines an before step hook.
- tagExpression
a tag expression, if the expression applies to the current scenario this hook will be executed
- order
the order in which this hook should run. Higher numbers are run first
- Definition Classes
- HookDsl
- def BeforeStep(order: Int): HookBody
Defines an before step hook.
Defines an before step hook.
- order
the order in which this hook should run. Higher numbers are run first
- Definition Classes
- HookDsl
- def BeforeStep(tagExpression: String): HookBody
Defines an before step hook.
Defines an before step hook.
- tagExpression
a tag expression, if the expression applies to the current scenario this hook will be executed
- Definition Classes
- HookDsl
- def BeforeStep: HookBody
Defines an before step hook.
Defines an before step hook.
- Definition Classes
- HookDsl
- val DEFAULT_AFTER_ORDER: Int
- Definition Classes
- BaseScalaDsl
- val DEFAULT_BEFORE_ORDER: Int
- Definition Classes
- BaseScalaDsl
- 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.
- replaceWithEmptyString
a string that will be replaced with an empty string.
- Definition Classes
- DataTableTypeDsl
- def DataTableType: DataTableTypeBody
Register a data table type.
Register a data table type.
- Definition Classes
- DataTableTypeDsl
- 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. *
- replaceWithEmptyString
a string that will be replaced with an empty string.
- body
converts
String
argument to an instance of theType
argument
- Definition Classes
- DefaultTransformerDsl
- def DefaultDataTableCellTransformer(body: DefaultDataTableCellTransformerBody): Unit
Register default data table cell transformer.
Register default data table cell transformer.
- body
converts
String
argument to an instance of theType
argument
- Definition Classes
- DefaultTransformerDsl
- 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.
- replaceWithEmptyString
a string that will be replaced with an empty string.
- body
converts
Map[String,String]
argument to an instance of theType
argument
- Definition Classes
- DefaultTransformerDsl
- def DefaultDataTableEntryTransformer(body: DefaultDataTableEntryTransformerBody): Unit
Register default data table entry transformer.
Register default data table entry transformer.
- body
converts
Map[String,String]
argument to an instance of theType
argument
- Definition Classes
- DefaultTransformerDsl
- def DefaultParameterTransformer(body: DefaultParameterTransformerBody): Unit
Register default parameter type transformer.
Register default parameter type transformer.
- body
converts
String
argument to an instance of theType
argument
- Definition Classes
- DefaultTransformerDsl
- def DocStringType[T](contentType: String)(body: DocStringDefinitionBody[T])(implicit ev: ClassTag[T]): Unit
Register doc string type.
Register doc string type.
- T
type to convert to
- contentType
Name of the content type.
- body
a function that creates an instance of
T
from the doc string
- Definition Classes
- DocStringTypeDsl
- val EMPTY_TAG_EXPRESSION: String
- Definition Classes
- BaseScalaDsl
- val NO_REPLACEMENT: Seq[String]
- Definition Classes
- BaseScalaDsl
- def ParameterType(name: String, regex: String): ParameterTypeBody
Register parameter type.
Register parameter type.
- name
used as the type name in typed expressions
- regex
expression to match
- Definition Classes
- ParameterTypeDsl
- See also
https://cucumber.io/docs/cucumber/cucumber-expressions
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def createObjectMapper(): ObjectMapper
Create the Jackson ObjectMapper to be used.
Create the Jackson ObjectMapper to be used. Default is a simple ObjectMapper with DefaultScalaModule registered.
- def emptyStringReplacement: String
Define the string to be used as replacement for empty.
Define the string to be used as replacement for empty. Default is
[empty]
. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object Fun0
- Definition Classes
- StepDsl
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated