Package 

Class TestUtilsKt

    • Method Summary

      Modifier and Type Method Description
      final static <N extends Any, V extends N> Unit shouldEqual(KCallable<N> $self, V expected) Extension to add the name of a property to error messages.
      final static <N extends Any, V extends N> Unit shouldBe(KCallable<N> $self, V expected) Extension to add the name of the property to error messages.
      final static <T extends Any> Unit shouldMatch(KCallable<T> $self, Function1<T, Unit> expected)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • shouldEqual

         final static <N extends Any, V extends N> Unit shouldEqual(KCallable<N> $self, V expected)

        Extension to add the name of a property to error messages.

      • shouldBe

         final static <N extends Any, V extends N> Unit shouldBe(KCallable<N> $self, V expected)

        Extension to add the name of the property to error messages. Use with double colon syntax, eg it::isIntegerLiteral shouldBe true. For properties synthesized from Java getters starting with "get", you have to use the name of the getter instead of that of the generated property (with the get prefix).

        If this conflicts with io.kotest.matchers.shouldBe, use the equivalent shouldEqual