class ScalaStepDefinition extends StepDefinition
Implementation of step definition for scala.
- Alphabetic
- By Inheritance
- ScalaStepDefinition
- StepDefinition
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
-
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
-
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
-
def
getPattern(): String
- returns
the pattern associated with this instance. Used for error reporting only.
- Definition Classes
- ScalaStepDefinition → StepDefinition
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isScenarioScoped(): Boolean
- Definition Classes
- ScalaStepDefinition → StepDefinition
-
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
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )