trait StringMustWrapperForVerb extends AnyRef
This class supports the syntax of FlatSpec
, WordSpec
, fixture.FlatSpec
,
and fixture.WordSpec
.
This class is used in conjunction with an implicit conversion to enable must
methods to
be invoked on String
s.
- Source
- MustVerb.scala
- Alphabetic
- By Inheritance
- StringMustWrapperForVerb
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
must(resultOfAfterWordApplication: ResultOfAfterWordApplication)(implicit swawr: SubjectWithAfterWordRegistration): Unit
Supports the registration of subject descriptions with after words in
WordSpec
andfixture.WordSpec
.Supports the registration of subject descriptions with after words in
WordSpec
andfixture.WordSpec
.For example, this method enables syntax such as the following in
WordSpec
andfixture.WordSpec
:def provide = afterWord("provide") "The ScalaTest Matchers DSL" must provide { ^
WordSpec
passes in a function via the implicit parameter that takes two strings and aResultOfAfterWordApplication
and results inUnit
. This method simply invokes this function, passing in leftSideString, the verb string"must"
, and theResultOfAfterWordApplication
passed tomust
. -
def
must(right: ⇒ Unit)(implicit fun: StringVerbBlockRegistration): Unit
Supports the registration of subject descriptions in
WordSpec
andfixture.WordSpec
.Supports the registration of subject descriptions in
WordSpec
andfixture.WordSpec
.For example, this method enables syntax such as the following in
WordSpec
andfixture.WordSpec
:"A Stack (when empty)" must { ... ^
WordSpec
passes in a function via the implicit parameter of typeStringVerbBlockRegistration
, a function that takes two strings and a no-arg function and results inUnit
. This method simply invokes this function, passing in leftSideString, the verb string"must"
, and the right by-name parameter transformed into a no-arg function. -
def
must(right: BehaveWord)(implicit svbli: StringVerbBehaveLikeInvocation): BehaveWord
Supports shared test registration in
FlatSpec
andfixture.FlatSpec
.Supports shared test registration in
FlatSpec
andfixture.FlatSpec
.For example, this method enables syntax such as the following in
FlatSpec
andfixture.FlatSpec
:"A Stack (with one item)" must behave like nonEmptyStack(stackWithOneItem, lastValuePushed) ^
FlatSpec
andfixture.FlatSpec
passes in a function via the implicit parameter that takes a string and results in aBehaveWord
. This method simply invokes this function, passing in leftSideString, and returns the result. -
def
must(right: String)(implicit svsi: StringVerbStringInvocation): ResultOfStringPassedToVerb
Supports test registration in
FlatSpec
andfixture.FlatSpec
.Supports test registration in
FlatSpec
andfixture.FlatSpec
.For example, this method enables syntax such as the following in
FlatSpec
andfixture.FlatSpec
:"A Stack (when empty)" must "be empty" in { ... } ^
FlatSpec
passes in a function via the implicit parameter that takes three strings and results in aResultOfStringPassedToVerb
. This method simply invokes this function, passing in leftSideString, the verb string"must"
, and right, and returns the result. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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( ... )