org.specs2.specification
This trait defines methods for creating Examples.
You can subclass it and implement the newExample(e: Example) method to provide alternative behavior.
newExample(e: Example)
The new factory can be passed to a Specification by overriding the ExamplesFactory.exampleFactory method
ExamplesFactory.exampleFactory
an Example, using anything that can be translated to a Result, e.g. a Boolean
an Example, using a function taking the example description as an input
This trait defines methods for creating Examples.
You can subclass it and implement the
newExample(e: Example)
method to provide alternative behavior.The new factory can be passed to a Specification by overriding the
ExamplesFactory.exampleFactory
method