package scalatest
- Alphabetic
- Public
- All
Type Members
- trait EitherMatchers extends AnyRef
- trait EitherValues extends AnyRef
- trait NonEmptyListScalaTestInstances extends AnyRef
- trait ValidatedMatchers extends AnyRef
- trait ValidatedValues extends AnyRef
Value Members
-
object
EitherMatchers extends EitherMatchers
Import singleton in case you prefer to import rather than mix in.
Import singleton in case you prefer to import rather than mix in.
import EitherMatchers._ result should beRight(100)
-
object
EitherValues extends EitherValues
Companion object for easy importing – rather than mixing in – to allow
EitherValues
operations.Companion object for easy importing – rather than mixing in – to allow
EitherValues
operations.This will permit you to invoke a
value
method on an instance of ascala.util.Either
, which attempts to unwrap theValid
.Similar to
org.scalatest.OptionValues.Valuable
Meant to allow you to make statements like:
result.value should be > 15
Where it only matches if result is both an
Either.Vaild
and has a value > 15.Otherwise your test will fail, indicating that it was an Invalid instead of Valid
- See also
EitherValues.EitherValuable
-
object
NonEmptyListScalaTestInstances extends NonEmptyListScalaTestInstances
Companion object for easy importing – rather than mixing in.
-
object
ValidatedMatchers extends ValidatedMatchers
Import singleton in case you prefer to import rather than mix in.
Import singleton in case you prefer to import rather than mix in.
import ValidatedMatchers._ result should beValid (100)
-
object
ValidatedValues extends ValidatedValues
Companion object for easy importing – rather than mixing in – to allow
ValidatedValues
operations.Companion object for easy importing – rather than mixing in – to allow
ValidatedValues
operations.This will permit you to invoke a
value
method on an instance of acats.data.Validated
, which attempts to unwrap the Validated.ValidSimilar to
org.scalatest.OptionValues.Valuable
Meant to allow you to make statements like:
result.value should be > 15
Where it only matches if result is both valid and greater than 15.
Otherwise your test will fail, indicating that it was an Invalid instead of Valid
- See also
org.scalatest.OptionValues.Valuable