ScalaTest 1.0
|
|
final
class
OrNotWord
extends
AnyRefShouldMatchers
or MustMatchers
for an overview of
the matchers DSL.Method Summary | |
def
|
be
[T](beMatcher : BeMatcher[T]) : Matcher[T with T]
This method enables the following syntax:
2 should (not be (even) or not be (odd)) ^ |
def
|
be
(doubleTolerance : DoubleTolerance) : Matcher[T with Double]
This method enables the following syntax:
sevenDotOh should (not be (17.0 plusOrMinus 0.2) or not be (17.0 plusOrMinus 0.2)) ^ |
def
|
be
(resultOfTripleEqualsApplication : ResultOfTripleEqualsApplication) : Matcher[T]
This method enables the following syntax:
5 should (not be === (7) or not be === (8)) ^ |
def
|
be
[T](resultOfLessThanComparison : ResultOfLessThanComparison[T]) : Matcher[T with T]
This method enables the following syntax:
5 should (not be < (7) or not be < (8)) ^ |
def
|
be
[T](resultOfGreaterThanComparison : ResultOfGreaterThanComparison[T]) : Matcher[T with T]
This method enables the following syntax:
7 should (not be > (5) or not be > (6)) ^ |
def
|
be
[T](bePropertyMatcher : BePropertyMatcher[T]) : Matcher[T with AnyRef with T]
This method enables the following syntax:
myFile should (not be (directory) or not be (file)) ^ |
def
|
be
(floatTolerance : FloatTolerance) : Matcher[T with Float]
This method enables the following syntax:
sevenDotOhFloat should (not be (17.0f plusOrMinus 0.2f) or not be (17.0f plusOrMinus 0.2f)) ^ |
def
|
be
(longTolerance : LongTolerance) : Matcher[T with Long]
This method enables the following syntax:
sevenLong should (not be (17L plusOrMinus 2L) or not be (17L plusOrMinus 2L)) ^ |
def
|
be
[T](o : Null) : Matcher[T with AnyRef]
This method enables the following syntax:
map should (contain key (7) or not be (null)) ^ |
def
|
be
[T](resultOfGreaterThanOrEqualToComparison : ResultOfGreaterThanOrEqualToComparison[T]) : Matcher[T with T]
This method enables the following syntax:
8 should (not be >= (7) or not be >= (6)) ^ |
def
|
be
[T](resultOfAnWordApplication : ResultOfAnWordToSymbolApplication) : Matcher[T with AnyRef]
This method enables the following syntax:
notAppleMock should (not be an ('apple) or not be an ('apple)) ^ |
def
|
be
[T <: AnyRef](resultOfAWordApplication : ResultOfAWordToBePropertyMatcherApplication[T]) : Matcher[T with T]
This method enables the following syntax:
myFile should (not be a (directory) or not be a (file)) ^ |
def
|
be
(any : Any) : Matcher[T]
This method enables the following syntax:
1 should (not be (1) or not be (2)) ^ |
def
|
be
(symbol : scala.Symbol) : Matcher[T with AnyRef]
This method enables the following syntax:
notEmptyMock should (not be ('full) or not be ('empty)) ^ |
def
|
be
[T](resultOfAWordApplication : ResultOfAWordToSymbolApplication) : Matcher[T with AnyRef]
This method enables the following syntax:
isNotFileMock should (not be a ('directory) or not be a ('file)) ^ |
def
|
be
(byteTolerance : ByteTolerance) : Matcher[T with Byte]
This method enables the following syntax:
sevenByte should ((not be (19.toByte plusOrMinus 2.toByte)) or (not be (19.toByte plusOrMinus 2.toByte))) ^ |
def
|
be
(shortTolerance : ShortTolerance) : Matcher[T with Short]
This method enables the following syntax:
sevenShort should (not be (17.toShort plusOrMinus 2.toShort) or not be (17.toShort plusOrMinus 2.toShort)) ^ |
def
|
be
(intTolerance : IntTolerance) : Matcher[T with Int]
This method enables the following syntax:
sevenInt should (not be (17 plusOrMinus 2) or not be (17 plusOrMinus 2)) ^ |
def
|
be
[T](resultOfLessThanOrEqualToComparison : ResultOfLessThanOrEqualToComparison[T]) : Matcher[T with T]
This method enables the following syntax:
2 should (not be <= (3) or not be <= (2)) ^ |
def
|
be
[T <: AnyRef](resultOfAnWordApplication : ResultOfAnWordToBePropertyMatcherApplication[T]) : Matcher[T with T]
This method enables the following syntax:
myFile should (not be an (directory) or not be an (file)) ^ |
def
|
be
[T](resultOfTheSameInstanceAsApplication : ResultOfTheSameInstanceAsApplication) : Matcher[T with AnyRef]
This method enables the following syntax:
obj should (not be theSameInstanceAs (otherString) or not be theSameInstanceAs (string)) ^ |
def
|
contain
[T](expectedElement : T) : Matcher[T with scala.Iterable[T]]
This method enables the following syntax:
Array(1, 2) should (not contain (1) or not contain (3)) ^ |
def
|
contain
[T](resultOfValueWordApplication : ResultOfValueWordApplication[T]) : Matcher[<NoSymbol>.<refinement>]
This method enables the following syntax:
Map("one" -> 1, "two" -> 2) should (not contain value (2) or not contain value (3)) ^ |
def
|
contain
[T](resultOfKeyWordApplication : ResultOfKeyWordApplication[T]) : Matcher[T with scala.collection.Map[T, Any]]
This method enables the following syntax:
Map("one" -> 1, "two" -> 2) should (not contain key ("two") or not contain key ("three")) ^ |
def
|
endWith
(expectedSubstring : java.lang.String) : Matcher[T with java.lang.String]
This method enables the following syntax:
"fred" should (not endWith ("fred") or not endWith ("1.7")) ^ |
def
|
endWith
(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Matcher[T with java.lang.String]
This method enables the following syntax:
"fred" should (not endWith regex ("bob") or not endWith regex (decimal)) ^ |
def
|
equal
(any : Any) : Matcher[T]
This method enables the following syntax:
1 should (not equal (1) or not equal (2)) ^ |
def
|
fullyMatch
(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Matcher[T with java.lang.String]
This method enables the following syntax:
"fred" should (not fullyMatch regex ("fred") or not fullyMatch regex (decimal)) ^ |
def
|
have
(resultOfLengthWordApplication : ResultOfLengthWordApplication) : Matcher[T with AnyRef]
This method enables the following syntax:
Array(1, 2) should (not have length (2) or not have length (3)) ^ |
def
|
have
[T](firstPropertyMatcher : HavePropertyMatcher[T, Any], propertyMatchers : HavePropertyMatcher[T, Any]*) : Matcher[T with T]
This method enables the following syntax:
book should (not have (title ("Moby Dick")) or not have (author ("Melville"))) ^ |
def
|
have
(resultOfSizeWordApplication : ResultOfSizeWordApplication) : Matcher[T with AnyRef]
This method enables the following syntax:
Array(1, 2) should (not have size (2) or not have size (3)) ^ |
def
|
include
(expectedSubstring : java.lang.String) : Matcher[T with java.lang.String]
This method enables the following syntax:
"fred" should (not include ("bob") or not include ("1.7")) ^ |
def
|
include
(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Matcher[T with java.lang.String]
This method enables the following syntax:
"fred" should (not include regex ("fred") or not include regex (decimal)) ^ |
def
|
startWith
(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Matcher[T with java.lang.String]
This method enables the following syntax:
"fred" should (not startWith regex ("bob") or not startWith regex (decimal)) ^ |
def
|
startWith
(expectedSubstring : java.lang.String) : Matcher[T with java.lang.String]
This method enables the following syntax:
"fred" should (not startWith ("fred") or not startWith ("1.7")) ^ |
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 |
1 should (not equal (1) or not equal (2)) ^
1 should (not be (1) or not be (2)) ^
def
have(resultOfLengthWordApplication : ResultOfLengthWordApplication) : Matcher[T with
AnyRef]
Array(1, 2) should (not have length (2) or not have length (3)) ^
def
have(resultOfSizeWordApplication : ResultOfSizeWordApplication) : Matcher[T with
AnyRef]
Array(1, 2) should (not have size (2) or not have size (3)) ^
def
have[T](firstPropertyMatcher : HavePropertyMatcher[T, Any], propertyMatchers : HavePropertyMatcher[T, Any]*) : Matcher[T with
T]
book should (not have (title ("Moby Dick")) or not have (author ("Melville"))) ^
map should (contain key (7) or not be (null)) ^
def
be[T](resultOfLessThanComparison : ResultOfLessThanComparison[T]) : Matcher[T with
T]
5 should (not be < (7) or not be < (8)) ^
def
be[T](resultOfGreaterThanComparison : ResultOfGreaterThanComparison[T]) : Matcher[T with
T]
7 should (not be > (5) or not be > (6)) ^
def
be[T](resultOfLessThanOrEqualToComparison : ResultOfLessThanOrEqualToComparison[T]) : Matcher[T with
T]
2 should (not be <= (3) or not be <= (2)) ^
def
be[T](resultOfGreaterThanOrEqualToComparison : ResultOfGreaterThanOrEqualToComparison[T]) : Matcher[T with
T]
8 should (not be >= (7) or not be >= (6)) ^
def
be(resultOfTripleEqualsApplication : ResultOfTripleEqualsApplication) : Matcher[T]
5 should (not be === (7) or not be === (8)) ^
def
be(symbol : scala.Symbol) : Matcher[T with
AnyRef]
notEmptyMock should (not be ('full) or not be ('empty)) ^
2 should (not be (even) or not be (odd)) ^
myFile should (not be (directory) or not be (file)) ^
def
be[T](resultOfAWordApplication : ResultOfAWordToSymbolApplication) : Matcher[T with
AnyRef]
isNotFileMock should (not be a ('directory) or not be a ('file)) ^
def
be[T <: AnyRef](resultOfAWordApplication : ResultOfAWordToBePropertyMatcherApplication[T]) : Matcher[T with
T]
myFile should (not be a (directory) or not be a (file)) ^
def
be[T](resultOfAnWordApplication : ResultOfAnWordToSymbolApplication) : Matcher[T with
AnyRef]
notAppleMock should (not be an ('apple) or not be an ('apple)) ^
def
be[T <: AnyRef](resultOfAnWordApplication : ResultOfAnWordToBePropertyMatcherApplication[T]) : Matcher[T with
T]
myFile should (not be an (directory) or not be an (file)) ^
def
be[T](resultOfTheSameInstanceAsApplication : ResultOfTheSameInstanceAsApplication) : Matcher[T with
AnyRef]
obj should (not be theSameInstanceAs (otherString) or not be theSameInstanceAs (string)) ^
def
be(doubleTolerance : DoubleTolerance) : Matcher[T with
Double]
sevenDotOh should (not be (17.0 plusOrMinus 0.2) or not be (17.0 plusOrMinus 0.2)) ^
def
be(floatTolerance : FloatTolerance) : Matcher[T with
Float]
sevenDotOhFloat should (not be (17.0f plusOrMinus 0.2f) or not be (17.0f plusOrMinus 0.2f)) ^
def
be(longTolerance : LongTolerance) : Matcher[T with
Long]
sevenLong should (not be (17L plusOrMinus 2L) or not be (17L plusOrMinus 2L)) ^
def
be(intTolerance : IntTolerance) : Matcher[T with
Int]
sevenInt should (not be (17 plusOrMinus 2) or not be (17 plusOrMinus 2)) ^
def
be(shortTolerance : ShortTolerance) : Matcher[T with
Short]
sevenShort should (not be (17.toShort plusOrMinus 2.toShort) or not be (17.toShort plusOrMinus 2.toShort)) ^
def
be(byteTolerance : ByteTolerance) : Matcher[T with
Byte]
sevenByte should ((not be (19.toByte plusOrMinus 2.toByte)) or (not be (19.toByte plusOrMinus 2.toByte))) ^
def
fullyMatch(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Matcher[T with
java.lang.String]
"fred" should (not fullyMatch regex ("fred") or not fullyMatch regex (decimal)) ^
def
include(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Matcher[T with
java.lang.String]
"fred" should (not include regex ("fred") or not include regex (decimal)) ^
def
include(expectedSubstring : java.lang.String) : Matcher[T with
java.lang.String]
"fred" should (not include ("bob") or not include ("1.7")) ^
def
startWith(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Matcher[T with
java.lang.String]
"fred" should (not startWith regex ("bob") or not startWith regex (decimal)) ^
def
startWith(expectedSubstring : java.lang.String) : Matcher[T with
java.lang.String]
"fred" should (not startWith ("fred") or not startWith ("1.7")) ^
def
endWith(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Matcher[T with
java.lang.String]
"fred" should (not endWith regex ("bob") or not endWith regex (decimal)) ^
def
endWith(expectedSubstring : java.lang.String) : Matcher[T with
java.lang.String]
"fred" should (not endWith ("fred") or not endWith ("1.7")) ^
def
contain[T](expectedElement : T) : Matcher[T with
scala.Iterable[T]]
Array(1, 2) should (not contain (1) or not contain (3)) ^
def
contain[T](resultOfKeyWordApplication : ResultOfKeyWordApplication[T]) : Matcher[T with
scala.collection.Map[T, Any]]
Map("one" -> 1, "two" -> 2) should (not contain key ("two") or not contain key ("three")) ^
def
contain[T](resultOfValueWordApplication : ResultOfValueWordApplication[T]) : Matcher[<NoSymbol>.<refinement>]
Map("one" -> 1, "two" -> 2) should (not contain value (2) or not contain value (3)) ^
ScalaTest 1.0
|
|