Object

org.scalatest.matchers

TypeMatcherHelper

Related Doc: package matchers

Permalink

object TypeMatcherHelper

TypeMatcherHelper is called by TypeMatcherMacro to support a [Type] and an [Type] syntax.

Source
TypeMatcherHelper.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TypeMatcherHelper
  2. AnyRef
  3. 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. def aTypeMatcher(aType: ResultOfATypeInvocation[_]): Matcher[Any]

    Permalink

    Create a type matcher for the given ResultOfATypeInvocation.

    Create a type matcher for the given ResultOfATypeInvocation.

    aType

    an instance of ResultOfATypeInvocation

    returns

    a type Matcher

  5. def anTypeMatcher(anType: ResultOfAnTypeInvocation[_]): Matcher[Any]

    Permalink

    Create a type matcher for the given ResultOfAnTypeInvocation.

    Create a type matcher for the given ResultOfAnTypeInvocation.

    anType

    an instance of ResultOfAnTypeInvocation

    returns

    a type Matcher

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def assertAType(left: Any, aType: ResultOfATypeInvocation[_]): Assertion

    Permalink

    Check if the given left is an instance of the type as described in the given ResultOfATypeInvocation.

    Check if the given left is an instance of the type as described in the given ResultOfATypeInvocation. A TestFailedException will be thrown if left is not an instance of the type given by ResultOfATypeInvocation.

    left

    the left-hand-side (LHS) to be checked for the type

    aType

    an instance of ResultOfATypeInvocation

  8. def assertATypeShouldBeTrue(left: Any, aType: ResultOfATypeInvocation[_], shouldBeTrue: Boolean): Assertion

    Permalink

    Based on shouldBeTrue value, check if the given left is an instance of the type as described in the given ResultOfATypeInvocation.

    Based on shouldBeTrue value, check if the given left is an instance of the type as described in the given ResultOfATypeInvocation. If shouldBeTrue is true, a TestFailedException will be thrown if left is not an instance of the type given by ResultOfATypeInvocation. If shouldBeTrue is false, a TestFailedException will be thrown if left is an instance of the type given by ResultOfATypeInvocation.

    left

    the left-hand-side (LHS) to be checked for the type

    aType

    an instance of ResultOfATypeInvocation

  9. def assertAnType(left: Any, anType: ResultOfAnTypeInvocation[_]): Assertion

    Permalink

    Check if the given left is an instance of the type as described in the given ResultOfAnTypeInvocation.

    Check if the given left is an instance of the type as described in the given ResultOfAnTypeInvocation. A TestFailedException will be thrown if left is not an instance of the type given by ResultOfAnTypeInvocation.

    left

    the left-hand-side (LHS) to be checked for the type

    anType

    an instance of ResultOfAnTypeInvocation

  10. def assertAnTypeShouldBeTrue(left: Any, anType: ResultOfAnTypeInvocation[_], shouldBeTrue: Boolean): Assertion

    Permalink

    Based on shouldBeTrue value, check if the given left is an instance of the type as described in the given ResultOfAnTypeInvocation.

    Based on shouldBeTrue value, check if the given left is an instance of the type as described in the given ResultOfAnTypeInvocation. If shouldBeTrue is true, a TestFailedException will be thrown if left is not an instance of the type given by ResultOfAnTypeInvocation. If shouldBeTrue is false, a TestFailedException will be thrown if left is an instance of the type given by ResultOfAnTypeInvocation.

    left

    the left-hand-side (LHS) to be checked for the type

    anType

    an instance of ResultOfAnTypeInvocation

  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def expectAType(left: Any, aType: ResultOfATypeInvocation[_]): Fact

    Permalink

    Check if the given left is an instance of the type as described in the given ResultOfATypeInvocation.

    Check if the given left is an instance of the type as described in the given ResultOfATypeInvocation. A Fact.No will be returned if left is not an instance of the type given by ResultOfATypeInvocation.

    left

    the left-hand-side (LHS) to be checked for the type

    aType

    an instance of ResultOfATypeInvocation

  15. def expectAnType(left: Any, anType: ResultOfAnTypeInvocation[_]): Fact

    Permalink

    Check if the given left is an instance of the type as described in the given ResultOfAnTypeInvocation.

    Check if the given left is an instance of the type as described in the given ResultOfAnTypeInvocation. A Fact.No will be returned if left is not an instance of the type given by ResultOfAnTypeInvocation.

    left

    the left-hand-side (LHS) to be checked for the type

    anType

    an instance of ResultOfAnTypeInvocation

  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. def notATypeMatcher(aType: ResultOfATypeInvocation[_]): Matcher[Any]

    Permalink

    Create a negated type matcher for the given ResultOfATypeInvocation.

    Create a negated type matcher for the given ResultOfATypeInvocation.

    aType

    an instance of ResultOfATypeInvocation

    returns

    a negated type Matcher

  22. def notAnTypeMatcher(anType: ResultOfAnTypeInvocation[_]): Matcher[Any]

    Permalink

    Create a negated type matcher for the given ResultOfAnTypeInvocation.

    Create a negated type matcher for the given ResultOfAnTypeInvocation.

    anType

    an instance of ResultOfAnTypeInvocation

    returns

    a negated type Matcher

  23. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  25. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped