sealed trait MockSpec[-R, +E, +A] extends AnyRef
- Self Type
- MockSpec[R, E, A]
- Alphabetic
- By Inheritance
- MockSpec
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
&&&[R1 <: R, E1 >: E, B](that: ⇒ MockSpec[R1, E1, B]): MockSpec[R1, E1, (A, B)]
Sequentially zips this specification with another, combining the results into a tuple.
-
final
def
*>[R1 <: R, E1 >: E, B](that: ⇒ MockSpec[R1, E1, B]): MockSpec[R1, E1, B]
A variant of
flatMapthat ignores the value produced by this mock specification. -
final
def
<*[R1 <: R, E1 >: E, B](that: ⇒ MockSpec[R1, E1, B]): MockSpec[R1, E1, A]
Sequences the given mock specification after this specification, but ignores the value produced by the it.
-
final
def
<*>[R1 <: R, E1 >: E, B](that: ⇒ MockSpec[R1, E1, B]): MockSpec[R1, E1, (A, B)]
Alias for
&&&. -
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
>>=[R1 <: R, E1 >: E, B](k: (A) ⇒ MockSpec[R1, E1, B]): MockSpec[R1, E1, B]
Alias for
flatMap.Alias for
flatMap.val mockSpec = MockSpec.expectOut_(Console.Service.GetStrLn)("foo") >>= { input => MockSpec.expectIn(Console.Service.PutStrLn)(equalTo(input)) }
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
flatMap[R1 <: R, E1 >: E, B](k: (A) ⇒ MockSpec[R1, E1, B]): MockSpec[R1, E1, B]
Returns a mock specification that models the expectations for execution of mock, followed by the passing of its value to the specified continuation function
k, followed by the specification that it returns.Returns a mock specification that models the expectations for execution of mock, followed by the passing of its value to the specified continuation function
k, followed by the specification that it returns.val mockSpec = MockSpec.expectOut_(Console.Service.GetStrLn)("foo").flatMap(input => MockSpec.expectIn(Console.Service.PutStrLn)(equalTo(input)))
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
managedEnv[R1 <: R](implicit mockable: Mockable[R1]): Managed[Nothing, R1]
Creates a mock service for this specification and lifts it into ZManaged.
-
final
def
map[B](f: (A) ⇒ B): MockSpec[R, E, B]
Returns a mock specification whose success is mapped by the specified
ffunction. -
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
- @throws( ... ) @native()
-
final
def
zip[R1 <: R, E1 >: E, B](that: ⇒ MockSpec[R1, E1, B]): MockSpec[R1, E1, (A, B)]
A named alias for
&&&or<*>. -
final
def
zipLeft[R1 <: R, E1 >: E, B](that: ⇒ MockSpec[R1, E1, B]): MockSpec[R1, E1, A]
A named alias for
<*. -
final
def
zipRight[R1 <: R, E1 >: E, B](that: ⇒ MockSpec[R1, E1, B]): MockSpec[R1, E1, B]
A named alias for
*>.