Object/Trait

org.scalatest.words

FactMatcherWords

Related Docs: trait FactMatcherWords | package words

Permalink

object FactMatcherWords extends FactMatcherWords

Linear Supertypes
FactMatcherWords, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FactMatcherWords
  2. FactMatcherWords
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val be: BeWord

    Permalink

    This field enables syntax such as the following:

    This field enables syntax such as the following:

    obj will (be theSameInstanceAs (string) and be theSameInstanceAs (string))
                ^
    

    Definition Classes
    FactMatcherWords
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val compile: CompileWord

    Permalink

    This field enables the following syntax:

    This field enables the following syntax:

    "val a: String = 1" willNot compile
                                  ^
    

    Definition Classes
    FactMatcherWords
  8. val contain: ContainWord

    Permalink

    This field enables syntax such as the following:

    This field enables syntax such as the following:

    list will (contain ('a') and have length (7))
                 ^
    

    Definition Classes
    FactMatcherWords
  9. val defined: DefinedWord

    Permalink

    This field enables the following syntax:

    This field enables the following syntax:

    seq will be (defined)
                  ^
    

    Definition Classes
    FactMatcherWords
  10. val empty: EmptyWord

    Permalink

    This field enables the following syntax:

    This field enables the following syntax:

    list will be (empty)
                    ^
    

    Definition Classes
    FactMatcherWords
  11. val endWith: EndWithWord

    Permalink

    This field enables syntax such as the following:

    This field enables syntax such as the following:

    string will (endWith ("ago") and include ("score"))
                   ^
    

    Definition Classes
    FactMatcherWords
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equal(right: Any): MatcherFactory1[Any, Equality]

    Permalink

    This method enables the following syntax:

    This method enables the following syntax:

    result will equal (7)
                  ^
    

    The left will equal (right) syntax works by calling == on the left value, passing in the right value, on every type except arrays. If both left and right are arrays, deep will be invoked on both left and right before comparing them with ==. Thus, even though this expression will yield false, because Array's equals method compares object identity:

    Array(1, 2) == Array(1, 2) // yields false
    

    The following expression will not result in a TestFailedException, because ScalaTest will compare the two arrays structurally, taking into consideration the equality of the array's contents:

    Array(1, 2) will equal (Array(1, 2)) // succeeds (i.e., does not throw TestFailedException)
    

    If you ever do want to verify that two arrays are actually the same object (have the same identity), you can use the be theSameInstanceAs syntax.

    Definition Classes
    FactMatcherWords
  14. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. val exist: ExistWord

    Permalink

    This field enables the following syntax:

    This field enables the following syntax:

    file will exist
                ^
    

    Definition Classes
    FactMatcherWords
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. val fullyMatch: FullyMatchWord

    Permalink

    This field enables syntax such as the following:

    This field enables syntax such as the following:

    string will (fullyMatch regex ("Hel*o, wor.d") and not have length (99))
                   ^
    

    Definition Classes
    FactMatcherWords
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. val have: HaveWord

    Permalink

    This field enables syntax such as the following:

    This field enables syntax such as the following:

    list will (have length (3) and not contain ('a'))
                 ^
    

    Definition Classes
    FactMatcherWords
  21. val include: IncludeWord

    Permalink

    This field enables syntax such as the following:

    This field enables syntax such as the following:

    string will (include ("hope") and not startWith ("no"))
                   ^
    

    Definition Classes
    FactMatcherWords
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. val length: LengthWord

    Permalink

    This field enables the following syntax:

    This field enables the following syntax:

    "hi" will not have length (3)
                         ^
    

    Definition Classes
    FactMatcherWords
  24. val matchPattern: MatchPatternWord

    Permalink

    This field enables the following syntax:

    This field enables the following syntax:

    result will matchPattern { case Person("Bob", _) => }
                  ^
    

    Definition Classes
    FactMatcherWords
  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. def noException(implicit pos: Position): FactExceptionWord

    Permalink

    This field enables the following syntax:

    This field enables the following syntax:

    noException will be thrownBy
    ^
    

    Definition Classes
    FactMatcherWords
  27. val not: NotWord

    Permalink

    This field enables syntax like the following:

    This field enables syntax like the following:

    myFile will (not be an (directory) and not have ('name ("foo.bar")))
                   ^
    

    Definition Classes
    FactMatcherWords
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. val readable: ReadableWord

    Permalink

    This field enables the following syntax:

    This field enables the following syntax:

    file will be (readable)
                    ^
    

    Definition Classes
    FactMatcherWords
  31. val size: SizeWord

    Permalink

    This field enables the following syntax:

    This field enables the following syntax:

    set will not have size (3)
                        ^
    

    Definition Classes
    FactMatcherWords
  32. val sorted: SortedWord

    Permalink

    This field enables the following syntax:

    This field enables the following syntax:

    seq will be (sorted)
                  ^
    

    Definition Classes
    FactMatcherWords
  33. val startWith: StartWithWord

    Permalink

    This field enables syntax such as the following:

    This field enables syntax such as the following:

    string will (startWith ("Four") and include ("year"))
                   ^
    

    Definition Classes
    FactMatcherWords
  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. val typeCheck: TypeCheckWord

    Permalink

    This field enables the following syntax:

    This field enables the following syntax:

    "val a: String = 1" willNot typeCheck
                                  ^
    

    Definition Classes
    FactMatcherWords
  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. val writable: WritableWord

    Permalink

    This field enables the following syntax:

    This field enables the following syntax:

    file will be (writable)
                    ^
    

    Definition Classes
    FactMatcherWords

Inherited from FactMatcherWords

Inherited from AnyRef

Inherited from Any

Ungrouped