ScalaTest 1.1
|
|
org/scalatest/matchers/Matchers.scala
]
final
class
ResultOfNotWordForString(left : java.lang.String, shouldBeTrue : Boolean)
extends
ResultOfNotWordForAnyRef[java.lang.String]ShouldMatchers
or MustMatchers
for an overview of
the matchers DSL.Method Summary | |
def
|
endWith
(expectedSubstring : java.lang.String) : Unit
This method enables the following syntax:
"eight" should not endWith ("1.7") ^ |
def
|
endWith
(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Unit
This method enables the following syntax:
greeting should not endWith regex ("wor.d") ^ |
def
|
fullyMatch
(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Unit
This method enables the following syntax:
string should not fullyMatch regex ("""(-)?(\d+)(\.\d*)?""") ^ |
def
|
have
(resultOfLengthWordApplication : ResultOfLengthWordApplication) : Unit
This method enables the following syntax:
string should not have length (12) ^ |
def
|
include
(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Unit
This method enables the following syntax:
string should not include regex ("wo.ld") ^ |
def
|
include
(expectedSubstring : java.lang.String) : Unit
This method enables the following syntax:
string should not include ("world") ^ |
def
|
startWith
(expectedSubstring : java.lang.String) : Unit
This method enables the following syntax:
"eight" should not startWith ("1.7") ^ |
def
|
startWith
(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Unit
This method enables the following syntax:
string should not startWith regex ("Hel*o") ^ |
Methods inherited from ResultOfNotWordForAnyRef | |
be, be, be, be, be, be, be, be, have |
Methods inherited from ResultOfNotWord | |
equal, be, be, be, be, be, be, be |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
def
have(resultOfLengthWordApplication : ResultOfLengthWordApplication) : Unit
string should not have length (12) ^
def
fullyMatch(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Unit
string should not fullyMatch regex ("""(-)?(\d+)(\.\d*)?""") ^
The regular expression passed following the regex
token can be either a String
or a scala.util.matching.Regex
.
def
include(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Unit
string should not include regex ("wo.ld") ^
The regular expression passed following the regex
token can be either a String
or a scala.util.matching.Regex
.
def
include(expectedSubstring : java.lang.String) : Unit
string should not include ("world") ^
def
startWith(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Unit
string should not startWith regex ("Hel*o") ^
The regular expression passed following the regex
token can be either a String
or a scala.util.matching.Regex
.
def
startWith(expectedSubstring : java.lang.String) : Unit
"eight" should not startWith ("1.7") ^
def
endWith(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Unit
greeting should not endWith regex ("wor.d") ^
def
endWith(expectedSubstring : java.lang.String) : Unit
"eight" should not endWith ("1.7") ^
ScalaTest 1.1
|
|