org.specs2.specification

When

abstract class When[P, T] extends RegexStep[P, T]

This step define conditions in a sequence of Given / When / Then.

It must define the extract function taking the previous state of extracted values, P, and creating a new state of type T from the extracted values

Linear Supertypes
RegexStep[P, T], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. When
  2. RegexStep
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new When(regex: String = "", groupRegex: String = RegexStep.DEFAULT_REGEX)

Abstract Value Members

  1. abstract def extract(p: P, text: String): T

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def extract1(t: String): String

    extract the value contained in the first group

    extract the value contained in the first group

    Definition Classes
    RegexStep
  11. def extract10(t: String): (String, String, String, String, String, String, String, String, String, String)

    Definition Classes
    RegexStep
  12. def extract2(t: String): (String, String)

    Definition Classes
    RegexStep
  13. def extract3(t: String): (String, String, String)

    Definition Classes
    RegexStep
  14. def extract4(t: String): (String, String, String, String)

    Definition Classes
    RegexStep
  15. def extract5(t: String): (String, String, String, String, String)

    Definition Classes
    RegexStep
  16. def extract6(t: String): (String, String, String, String, String, String)

    Definition Classes
    RegexStep
  17. def extract7(t: String): (String, String, String, String, String, String, String)

    Definition Classes
    RegexStep
  18. def extract8(t: String): (String, String, String, String, String, String, String, String)

    Definition Classes
    RegexStep
  19. def extract9(t: String): (String, String, String, String, String, String, String, String, String)

    Definition Classes
    RegexStep
  20. def extractAll(t: String): List[String]

    Definition Classes
    RegexStep
  21. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  22. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  23. val groupRegex: String

  24. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  29. val regex: String

  30. lazy val regexToUse: Regex

    regex to use for a step with a partial function

    regex to use for a step with a partial function

    Attributes
    protected
    Definition Classes
    RegexStep
  31. def strip(f: Fragment): Fragment

    remove value markers ${} from a Text fragment

    remove value markers ${} from a Text fragment

    Definition Classes
    RegexStep
  32. def strip(text: String): String

    remove value markers ${} from the text

    remove value markers ${} from the text

    Definition Classes
    RegexStep
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. def toString(): String

    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  36. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  37. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from RegexStep[P, T]

Inherited from AnyRef

Inherited from Any

Ungrouped