object Assertions

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Assertions
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def assertDefined[T](option: Option[T], errorMessage: String): T
  6. def assertEquals[T](actual: T, expected: T): Unit
  7. def assertEquals[T](context: String, actual: T, expected: T): Unit
  8. def assertErrorCode(statusRuntimeException: StatusRuntimeException, expectedErrorCode: ErrorCode): Unit
  9. def assertGreaterOrEquals[T](context: String, a: T, b: T)(implicit ordering: Ordering[T]): Unit
  10. def assertGrpcError(t: Throwable, errorCode: ErrorCode, exceptionMessageSubstring: Option[String], checkDefiniteAnswerMetadata: Boolean = false, additionalErrorAssertions: (Throwable) => Unit = _ => ()): Unit
  11. def assertGrpcErrorOneOf(t: Throwable, errors: ErrorCode*): Unit
  12. def assertGrpcErrorRegex(t: Throwable, errorCode: ErrorCode, optPattern: Option[Pattern], checkDefiniteAnswerMetadata: Boolean = false, additionalErrorAssertions: (Throwable) => Unit = _ => ()): Unit

    Match the given exception against a status code and a regex for the expected message.

    Match the given exception against a status code and a regex for the expected message. Succeeds if the exception is a GrpcException with the expected code and the regex matches some part of the message or there is no message and the pattern is None.

    Annotations
    @tailrec()
  13. def assertIsEmpty(actual: Iterable[_]): Unit
  14. def assertLength[A, F[_] <: Seq[_]](context: String, length: Int, as: F[A]): F[A]
  15. def assertMatches(subjectName: String, message: String, pattern: Pattern): Unit
  16. def assertSameElements[T](actual: Iterable[T], expected: Iterable[T], context: String = ""): Unit
  17. def assertSingleton[A](context: String, as: Seq[A]): A
  18. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  21. def extractErrorInfoMetadata(status: Status): Map[String, String]
  22. def extractErrorInfoMetadata(exception: Throwable): Map[String, String]
  23. def extractErrorInfoMetadataValue(exception: Throwable, key: String): String
  24. def fail(message: String, cause: Throwable): Nothing
  25. def fail(message: String): Nothing
  26. implicit def futureAssertions[T](future: Future[T]): FutureAssertions[T]

    Allows for assertions with more information in the error messages.

  27. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  28. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  29. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  33. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. def verifyLength[A, F[_] <: Seq[_]](context: String, length: Int, as: F[A]): Unit
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped