Packages

c

cucumber.runtime.scala

ScalaStepDefinition

class ScalaStepDefinition extends StepDefinition

Implementation of step definition for scala.

Linear Supertypes
StepDefinition, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalaStepDefinition
  2. StepDefinition
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScalaStepDefinition(frame: StackTraceElement, name: String, pattern: String, parameterInfos: Array[Type], f: (List[Any]) ⇒ Any)

    frame

    Representation of a stack frame containing information about the context in which a step was defined. Allows retrospective queries about the definition of a step.

    name

    The name of the step definition class, e.g. cucumber.runtime.scala.test.CukesStepDefinitions

    pattern

    The regex matcher that defines the cucumber step, e.g. /I eat (.*) cukes$/

    f

    Function body of a step definition. This is what actually runs the code within the step def.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def execute(args: Array[AnyRef]): Unit

    Invokes the step definition.

    Invokes the step definition. The method should raise a Throwable if the invocation fails, which will cause the step to fail.

    Definition Classes
    ScalaStepDefinition → StepDefinition
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def getLocation(detail: Boolean): String

    The source line where the step definition is defined.

    The source line where the step definition is defined. Example: foo/bar/Zap.brainfuck:42

    detail

    true if extra detailed location information should be included.

    Definition Classes
    ScalaStepDefinition → StepDefinition
  12. def getParameterCount(): Integer

    How many declared parameters this stepdefinition has.

    How many declared parameters this stepdefinition has. Returns null if unknown.

    Definition Classes
    ScalaStepDefinition → StepDefinition
  13. def getParameterType(index: Int, javaType: Type): Type

    The parameter type at index n.

    The parameter type at index n. A hint about the raw parameter type is passed to make it easier for the implementation to make a guess based on runtime information. As Scala is a statically typed language, the javaType parameter is ignored

  14. def getPattern(): String

    returns

    the pattern associated with this instance. Used for error reporting only.

    Definition Classes
    ScalaStepDefinition → StepDefinition
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def isDefinedAt(stackTraceElement: StackTraceElement): Boolean

    Return true if this matches the location.

    Return true if this matches the location. This is used to filter stack traces.

    Definition Classes
    ScalaStepDefinition → StepDefinition
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def isScenarioScoped(): Boolean
    Definition Classes
    ScalaStepDefinition → StepDefinition
  19. def matchedArguments(step: PickleStep): List[Argument]

    Returns a list of arguments.

    Returns a list of arguments. Return null if the step definition doesn't match at all. Return an empty List if it matches with 0 arguments and bigger sizes if it matches several.

    Definition Classes
    ScalaStepDefinition → StepDefinition
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from StepDefinition

Inherited from AnyRef

Inherited from Any

Ungrouped