org.specs2.specification

Forms

Related Docs: object Forms | package specification

trait Forms extends FormsBuilder with FormFragmentsFactory with DecoratedProperties with FormS2StringContext with FormDsl

Allow a Form to be inserted among Fragments as a Text Fragment Allow a Form to be used as an example body and return a Result automatically

Linear Supertypes
FormDsl, SpecStructureDsl, SpecStructureDslLowImplicits, FragmentsDsl, AcceptanceDsl1, ActionDsl, TagDsl, ReferenceCreation, SpecStructureDsl1, FormS2StringContext, S2StringContext, S2StringContextImplicitsControl, S2StringContext1, S2StringContextCreation, FragmentsFactory, DecoratedProperties, FormFragmentsFactory, FormsBuilder, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Forms
  2. FormDsl
  3. SpecStructureDsl
  4. SpecStructureDslLowImplicits
  5. FragmentsDsl
  6. AcceptanceDsl1
  7. ActionDsl
  8. TagDsl
  9. ReferenceCreation
  10. SpecStructureDsl1
  11. FormS2StringContext
  12. S2StringContext
  13. S2StringContextImplicitsControl
  14. S2StringContext1
  15. S2StringContextCreation
  16. FragmentsFactory
  17. DecoratedProperties
  18. FormFragmentsFactory
  19. FormsBuilder
  20. AnyRef
  21. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class Decorated[T <: DecoratedProperty[T]] extends AnyRef

    Definition Classes
    DecoratedProperties
  2. implicit class HiddenFragment extends AnyRef

    Definition Classes
    FragmentsDsl
  3. implicit class appendFormToArguments extends appendToArguments

    Definition Classes
    FormDsl
  4. implicit class appendFormToFragment extends appendToFragment

    Definition Classes
    FormDsl
  5. implicit class appendFormToFragments extends appendToFragments

    Definition Classes
    FormDsl
  6. implicit class appendFormToSpecHeader extends appendSpecStructureToSpecHeader

    Definition Classes
    FormDsl
  7. implicit class appendFormToSpecStructure extends appendSpecStructureToSpecStructure

    Definition Classes
    FormDsl
  8. implicit class appendFormToString extends appendToString

    Definition Classes
    FormDsl
  9. implicit class appendSpecStructureToFragment extends AnyRef

    Definition Classes
    SpecStructureDsl
  10. implicit class appendSpecStructureToFragments extends AnyRef

    Definition Classes
    SpecStructureDslLowImplicits
  11. implicit class appendSpecStructureToSpecHeader extends AnyRef

    Definition Classes
    SpecStructureDsl
  12. implicit class appendSpecStructureToSpecStructure extends AnyRef

    Definition Classes
    SpecStructureDsl
  13. implicit class appendSpecStructureToString extends AnyRef

    Definition Classes
    SpecStructureDsl
  14. implicit class appendToArguments extends AnyRef

    Definition Classes
    SpecStructureDsl1
  15. implicit class appendToFragment extends AnyRef

    Definition Classes
    FragmentsDsl
  16. implicit class appendToFragments extends AnyRef

    Definition Classes
    FragmentsDsl
  17. implicit class appendToString extends AnyRef

    Definition Classes
    FragmentsDsl
  18. implicit class specificationInStringContext extends AnyRef

    Definition Classes
    S2StringContextCreation

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. def action(a: ⇒ Any): Fragment

    Definition Classes
    ActionDsl
  5. implicit def anyAsResultIsInterpolatedFragment(r: ⇒ Function0Result): InterpolatedFragment

    Definition Classes
    S2StringContext
  6. implicit def anyCellableSeq[T](seq: Seq[T])(implicit arg0: (T) ⇒ Cell): Seq[Cell]

    any seq of object convertible to cells

    any seq of object convertible to cells

    Definition Classes
    FormsBuilder
  7. implicit def anyIsField[T](t: ⇒ T): Field[T]

    anything can be added on a Form row as a Field

    anything can be added on a Form row as a Field

    Definition Classes
    FormsBuilder
  8. implicit def anyIsFieldCell(t: ⇒ Any): FieldCell

    anything can be added on a Form row as a TextCell

    anything can be added on a Form row as a TextCell

    Definition Classes
    FormsBuilder
  9. implicit def argumentsFunctionIsInterpolatedFragment[R](f: (Arguments) ⇒ R)(implicit arg0: AsResult[R]): InterpolatedFragment

    Definition Classes
    S2StringContext
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. implicit def asResultIsInterpolatedFragment[R](r: ⇒ R)(implicit arg0: AsResult[R]): InterpolatedFragment

    Definition Classes
    S2StringContext1
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. implicit def commandLineAsResultIsInterpolatedFragment[R](r: ⇒ R)(implicit arg0: CommandLineAsResult[R]): InterpolatedFragment

  14. implicit def commandLineFunctionIsInterpolatedFragment[R](f: (CommandLine) ⇒ R)(implicit arg0: AsResult[R]): InterpolatedFragment

    Definition Classes
    S2StringContext
  15. def createExecutionInterpolatedFragment(execution: Execution): InterpolatedFragment

    Definition Classes
    S2StringContextCreation
  16. implicit def descriptionToFragmentsIsInterpolatedFragment(fragments: (String) ⇒ Fragments): InterpolatedFragment

    Definition Classes
    S2StringContext
  17. def effect[T](label: String, value: ⇒ T): Effect[T]

    returns

    a new Effect with a label and a value

    Definition Classes
    FormsBuilder
  18. implicit def effectIsTextCell(t: Effect[_]): EffectCell

    a Effect can be added on a Form row as a EffectCell

    a Effect can be added on a Form row as a EffectCell

    Definition Classes
    FormsBuilder
  19. implicit def envFunctionIsInterpolatedFragment[R](f: (Env) ⇒ R)(implicit arg0: AsResult[R]): InterpolatedFragment

    Definition Classes
    S2StringContext
  20. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  22. implicit def executionContextFunctionIsInterpolatedFragment[R](f: (ExecutionContext) ⇒ R)(implicit arg0: AsResult[R]): InterpolatedFragment

    Definition Classes
    S2StringContext
  23. implicit def executionIsInterpolatedFragment(execution: Execution): InterpolatedFragment

    Definition Classes
    S2StringContext
  24. implicit def executorServiceFunctionIsInterpolatedFragment[R](f: (ExecutorService) ⇒ R)(implicit arg0: AsResult[R]): InterpolatedFragment

    Definition Classes
    S2StringContext
  25. def field(label: String, value1: Field[_], values: Field[_]*): Field[String]

    returns

    a new Field with a label and several values

    Definition Classes
    FormsBuilder
  26. def field[T](label: String, value: ⇒ T): Field[T]

    returns

    a new Field with a label and a value

    Definition Classes
    FormsBuilder
  27. def field[T](value: ⇒ T): Field[T]

    returns

    a new Field with no label and a value

    Definition Classes
    FormsBuilder
  28. implicit def fieldIsTextCell(t: Field[_]): FieldCell

    a Field can be added on a Form row as a FieldCell

    a Field can be added on a Form row as a FieldCell

    Definition Classes
    FormsBuilder
  29. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  30. def form(title: String): Form

    returns

    a new Form with the given title

    Definition Classes
    FormsBuilder
  31. def formFragmentFactory: FormFragmentFactory

    Attributes
    protected
    Definition Classes
    FormFragmentsFactory
  32. implicit def formIsCell(t: ⇒ Form): FormCell

    a Form can be added on a Form row as a FormCell

    a Form can be added on a Form row as a FormCell

    Definition Classes
    FormsBuilder
  33. implicit def formIsExecutable(f: Form): Result

    a Form can be implicitly executed if necessary

    a Form can be implicitly executed if necessary

    Definition Classes
    FormsBuilder
  34. implicit def formIsInterpolatedFragment(f: ⇒ Form): InterpolatedFragment

    Definition Classes
    FormS2StringContext
  35. implicit def fragmentAsSpecStructure(f: Fragment): SpecStructure

    Definition Classes
    SpecStructureDsl
  36. def fragmentFactory: FragmentFactory

    Attributes
    protected
    Definition Classes
    FragmentsFactory
  37. implicit def fragmentIsInterpolatedFragment(f: ⇒ Fragment): InterpolatedFragment

    Definition Classes
    S2StringContext1
  38. implicit def fragmentToFragments(f: Fragment): Fragments

    Definition Classes
    FragmentsDsl
  39. implicit def fragmentsAsSpecStructure(fs: ⇒ Fragments): SpecStructure

    Definition Classes
    SpecStructureDsl1
  40. def fragmentsBlock(fragments: Seq[Fragment], offset: Int = 2): Fragments

    create a block of new fragments where each of them is separated by a newline and there is a specific offset from the left margin

    create a block of new fragments where each of them is separated by a newline and there is a specific offset from the left margin

    Definition Classes
    FragmentsDsl
  41. implicit def fragmentsIsInterpolatedFragment(fragments: Fragments): InterpolatedFragment

    Definition Classes
    S2StringContext
  42. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  43. def hashCode(): Int

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

    Definition Classes
    Any
  45. def lazify(c: ⇒ Cell): LazyCell

    a cell can be added lazily to a row.

    a cell can be added lazily to a row. It will only be evaluated when necessary

    Definition Classes
    FormsBuilder
  46. def link(s: ⇒ SpecificationStructure): Fragment

    Definition Classes
    ReferenceCreation
  47. def link(s: SpecStructure): Fragment

    Definition Classes
    ReferenceCreation
  48. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  51. def prop[T, S](label: String, actual: ⇒ T, expected: ⇒ S, c: Matcher[T]): Prop[T, S]

    returns

    a new Prop with a label, an actual value and a matcher to apply to the actual value

    Definition Classes
    FormsBuilder
  52. def prop[T](actual: ⇒ T, c: Matcher[T]): Prop[T, T]

    returns

    a new Prop with no label, an actual value and a matcher to apply to the actual value

    Definition Classes
    FormsBuilder
  53. def prop[T](label: String, actual: ⇒ T, c: Matcher[T]): Prop[T, T]

    returns

    a new Prop with a label, an actual value and a matcher to apply to the actual value

    Definition Classes
    FormsBuilder
  54. def prop[T, S](label: String, actual: ⇒ T, c: (S) ⇒ Matcher[T]): Prop[T, S]

    returns

    a new Prop with a label, an actual value and a matcher to apply to values

    Definition Classes
    FormsBuilder
  55. def prop[T, S](label: String, actual: ⇒ T, c: (T, S) ⇒ Result): Prop[T, S]

    returns

    a new Prop with a label, an actual value and a constraint to apply to values

    Definition Classes
    FormsBuilder
  56. def prop[T, S](label: String, actual: ⇒ T, exp: ⇒ S): Prop[T, S]

    returns

    a new Prop with a label, an actual value and expected value

    Definition Classes
    FormsBuilder
  57. def prop[T](label: String, actual: ⇒ T): Prop[T, T]

    returns

    a new Prop with a label and an actual value only

    Definition Classes
    FormsBuilder
  58. def prop[T](act: ⇒ T): Prop[T, T]

    returns

    a new Prop with an actual value only

    Definition Classes
    FormsBuilder
  59. implicit def propIsCell(t: Prop[_, _]): PropCell

    a Prop can be adde d on a Form row as a PropCell

    a Prop can be adde d on a Form row as a PropCell

    Definition Classes
    FormsBuilder
  60. implicit def resultAsSpecStructure[R](r: ⇒ R)(implicit arg0: AsResult[R]): SpecStructure

    Definition Classes
    SpecStructureDslLowImplicits
  61. def s2(content: String, Yrangepos: Boolean, texts: Seq[String], textsStartPositions: Seq[String], textsEndPositions: Seq[String], variables: Seq[InterpolatedFragment], rangeExpressions: Seq[String]): Fragments

    based on the interpolated variables and the expressions captured with the macro, create the appropriate fragments

    based on the interpolated variables and the expressions captured with the macro, create the appropriate fragments

    if the Yrangepos scalac option is not set then we use an approximated method to find the expressions texts

    Definition Classes
    S2StringContextCreation
  62. def section(tag: NamedTag): Fragment

    Definition Classes
    TagDsl
  63. def section(names: String*): Fragment

    Definition Classes
    TagDsl
  64. def see(s: ⇒ SpecificationStructure): Fragment

    Definition Classes
    ReferenceCreation
  65. def see(s: SpecStructure): Fragment

    Definition Classes
    ReferenceCreation
  66. implicit def specHeaderAsStructure(header: SpecHeader): SpecStructure

    Definition Classes
    SpecStructureDsl
  67. implicit def specStructureAsFragments(spec: SpecStructure): Fragments

    Definition Classes
    SpecStructureDsl
  68. implicit def specStructureIsInterpolatedFragment(s: SpecStructure): InterpolatedFragment

    Definition Classes
    S2StringContext
  69. implicit def specificationRefIsInterpolatedFragment(ref: SpecificationRef): InterpolatedFragment

    Definition Classes
    S2StringContext
  70. implicit def specificationStructureIsInterpolatedFragment(s: SpecificationStructure): InterpolatedFragment

    Definition Classes
    S2StringContext
  71. implicit def statsRepositoryFunctionIsInterpolatedFragment[R](f: (StatisticsRepository) ⇒ R)(implicit arg0: AsResult[R]): InterpolatedFragment

    Definition Classes
    S2StringContext
  72. def step(a: ⇒ Any, global: Boolean): Fragment

    Definition Classes
    ActionDsl
  73. def step(a: ⇒ Any): Fragment

    Definition Classes
    ActionDsl
  74. implicit def stringAsSpecStructure(s: String): SpecStructure

    Definition Classes
    SpecStructureDsl
  75. implicit def stringFunctionIsInterpolatedFragment[R](f: (String) ⇒ R)(implicit arg0: AsResult[R]): InterpolatedFragment

    Definition Classes
    S2StringContext
  76. implicit def stringIsInterpolatedFragment(s: ⇒ String): InterpolatedFragment

    Definition Classes
    S2StringContext
  77. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  78. def tab(label: String, form: Form): Tabs

    returns

    a new Tabs object with a first tab

    Definition Classes
    FormsBuilder
  79. def tabs: Tabs

    returns

    a new Tabs object

    Definition Classes
    FormsBuilder
  80. def tag(tag: NamedTag): Fragment

    Definition Classes
    TagDsl
  81. def tag(names: String*): Fragment

    Definition Classes
    TagDsl
  82. implicit def toDecorated[T <: DecoratedProperty[T]](d: T): Decorated[T]

    Definition Classes
    DecoratedProperties
  83. implicit def toFormIsInterpolatedFragment(f: AnyRef { def form: org.specs2.form.Form }): InterpolatedFragment

    Definition Classes
    FormS2StringContext
  84. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  88. implicit def xmlIsACell[T](xml: ⇒ NodeSeq): XmlCell

    any xml can be injected as a cell

    any xml can be injected as a cell

    Definition Classes
    FormsBuilder

Inherited from FormDsl

Inherited from SpecStructureDsl

Inherited from SpecStructureDslLowImplicits

Inherited from FragmentsDsl

Inherited from AcceptanceDsl1

Inherited from ActionDsl

Inherited from TagDsl

Inherited from ReferenceCreation

Inherited from SpecStructureDsl1

Inherited from FormS2StringContext

Inherited from S2StringContext

Inherited from S2StringContext1

Inherited from S2StringContextCreation

Inherited from FragmentsFactory

Inherited from DecoratedProperties

Inherited from FormFragmentsFactory

Inherited from FormsBuilder

Inherited from AnyRef

Inherited from Any

Ungrouped