Package 

Class TestUtilsKt

  • All Implemented Interfaces:

    
    public final class TestUtilsKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • 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

      • assertSize

         final static List<RuleViolation> assertSize(Report report, Integer size)

        Assert number of violations.

      • assertSuppressed

         final static List<Report.SuppressedViolation> assertSuppressed(Report report, Integer size)

        Assert number of suppressed violations.