org.specs2.control.ImplicitParameters.scala Maven / Gradle / Ivy
package org.specs2
package control
/**
* This trait is used to abuse method overloading and allow some of the methods in specs2 DSL to
* be applicable to various parameters.
*
* For example in a mutable specification, the >> method is overloaded for lots of different arguments:
*
* - result
* - function of the Environment
* - function of the Command line
* - ...
*/
trait ImplicitParameters {
trait ImplicitParam
implicit lazy val implicitParameter: ImplicitParam = new ImplicitParam {}
trait ImplicitParam1
implicit lazy val implicitParameter1: ImplicitParam1 = new ImplicitParam1 {}
trait ImplicitParam2
implicit lazy val implicitParameter2: ImplicitParam2 = new ImplicitParam2 {}
trait ImplicitParam3
implicit lazy val implicitParameter3: ImplicitParam3 = new ImplicitParam3 {}
trait ImplicitParam4
implicit lazy val implicitParameter4: ImplicitParam4 = new ImplicitParam4 {}
trait ImplicitParam5
implicit lazy val implicitParameter5: ImplicitParam5 = new ImplicitParam5 {}
trait ImplicitParam6
implicit lazy val implicitParameter6: ImplicitParam6 = new ImplicitParam6 {}
trait ImplicitParam7
implicit lazy val implicitParameter7: ImplicitParam7 = new ImplicitParam7 {}
trait ImplicitParam8
implicit lazy val implicitParameter8: ImplicitParam8 = new ImplicitParam8 {}
trait ImplicitParam9
implicit lazy val implicitParameter9: ImplicitParam9 = new ImplicitParam9 {}
trait ImplicitParam10
implicit lazy val implicitParameter10: ImplicitParam10 = new ImplicitParam10 {}
}
object ImplicitParameters extends ImplicitParameters
© 2015 - 2025 Weber Informatics LLC | Privacy Policy