object Assertions
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Assertions
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def assertDefined[T](option: Option[T], errorMessage: String): T
- def assertEquals[T](actual: T, expected: T): Unit
- def assertEquals[T](context: String, actual: T, expected: T): Unit
- def assertErrorCode(statusRuntimeException: StatusRuntimeException, expectedErrorCode: ErrorCode): Unit
- def assertGreaterOrEquals[T](context: String, a: T, b: T)(implicit ordering: Ordering[T]): Unit
- def assertGrpcError(t: Throwable, errorCode: ErrorCode, exceptionMessageSubstring: Option[String], checkDefiniteAnswerMetadata: Boolean = false, additionalErrorAssertions: (Throwable) => Unit = _ => ()): Unit
- def assertGrpcErrorOneOf(t: Throwable, errors: ErrorCode*): Unit
- 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()
- def assertIsEmpty(actual: Iterable[_]): Unit
- def assertLength[A, F[_] <: Seq[_]](context: String, length: Int, as: F[A]): F[A]
- def assertMatches(subjectName: String, message: String, pattern: Pattern): Unit
- def assertSameElements[T](actual: Iterable[T], expected: Iterable[T], context: String = ""): Unit
- def assertSingleton[A](context: String, as: Seq[A]): A
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def extractErrorInfoMetadata(status: Status): Map[String, String]
- def extractErrorInfoMetadata(exception: Throwable): Map[String, String]
- def extractErrorInfoMetadataValue(exception: Throwable, key: String): String
- def fail(message: String, cause: Throwable): Nothing
- def fail(message: String): Nothing
- implicit def futureAssertions[T](future: Future[T]): FutureAssertions[T]
Allows for assertions with more information in the error messages.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def verifyLength[A, F[_] <: Seq[_]](context: String, length: Int, as: F[A]): Unit
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])