org.specs2.matcher.ExpectedResults
See theExpectedResults companion object
trait ExpectedResults extends ExpectationsCreation
This trait can be used in conjunction with Pattern matchers:
List(1, 2) must beLike { case List(a, b) => ok } List(1, 2) must beLike { case List(a, b) => ko("unexpected") }
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTraceclass Objecttrait Matchableclass Any
- Known subtypes
-
object ExpectedResultstrait ThrownExpectationstrait JUnitExpectationstrait JUnitMustExpectationsobject JUnitMustExpectationstrait JUnitMustMatchersobject JUnitMustMatcherstrait JUnitShouldExpectationsobject JUnitShouldExpectationstrait JUnitShouldMatchersobject JUnitShouldMatcherstrait MustThrownExpectationsobject MustThrownExpectationstrait MustThrownMatchersobject MustThrownMatcherstrait SpecLikeclass Specclass SpecWithJUnittrait SpecificationFeaturestrait SpecificationLikeclass Specificationclass SpecificationWithJUnittrait ShouldThrownExpectationsobject ShouldThrownExpectationstrait ShouldThrownMatchersobject ShouldThrownMatchersobject ThrownExpectationstrait SpecificationFeaturestrait SpecificationLikeclass Specificationtrait SpecificationLiketrait SpecificationLikeclass Specificationclass Specificationtrait Cardclass SpecificationWithJUnittrait SpecLikeclass Spectrait SpecLikeclass Specclass SpecWithJUnit
Members list
In this article