org.scalatest.matchers.Matchers

class ResultOfNotWordForString

[source: org/scalatest/matchers/Matchers.scala]

final class ResultOfNotWordForString(left : java.lang.String, shouldBeTrue : Boolean)
extends ResultOfNotWordForAnyRef[java.lang.String]
This class is part of the ScalaTest matchers DSL. Please see the documentation for ShouldMatchers or MustMatchers for an overview of the matchers DSL.
Author
Bill Venners
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 (expectedSubstring : java.lang.String) : Unit
This method enables the following syntax:
     string should not include ("world")
                       ^
     
def include (resultOfRegexWordApplication : ResultOfRegexWordApplication) : Unit
This method enables the following syntax:
     string should not include regex ("wo.ld")
                       ^
     
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
This method enables the following syntax:
     string should not have length (12)
                       ^
     

def fullyMatch(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Unit
This method enables the following syntax:
     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
This method enables the following syntax:
     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
This method enables the following syntax:
     string should not include ("world")
                       ^
     

def startWith(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Unit
This method enables the following syntax:
     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
This method enables the following syntax:
     "eight" should not startWith ("1.7")
                        ^
     

def endWith(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Unit
This method enables the following syntax:
     greeting should not endWith regex ("wor.d")
                         ^
     

def endWith(expectedSubstring : java.lang.String) : Unit
This method enables the following syntax:
     "eight" should not endWith ("1.7")
                        ^
     


Copyright (C) 2001-2009 Artima, Inc. All rights reserved.