Verifies.DefaultImpls
Keywords: net.corda.testing.dsl.Verifies.DefaultImpls class
Date: 2023-09-18

net.corda.testing.dsl

## Class Verifies.DefaultImpls

- net.corda.testing.dsl.Verifies.DefaultImpls

- Enclosing interface:
    Verifies

      public static class Verifies.DefaultImpls

  This interface asserts that the DSL at hand is capable of verifying its underlying construct(ledger/transaction).

- - ### Constructor Detail

    - #### DefaultImpls

          public DefaultImpls()

  - ### Method Detail

    - #### failsWith

          @NotNull
          public static EnforceVerifyOrFail failsWith(Verifies $this,
                                                               @Nullable
                                                               java.lang.String expectedMessage)

      Asserts that verifies() throws.

      Parameters:
        `$this` - An optional string to be searched for in the raised exception.
        `expectedMessage` - An optional string to be searched for in the raised exception.

    - #### fails

          @NotNull
          public static EnforceVerifyOrFail fails(Verifies $this)

      Asserts that `verifies` throws, with no condition on the exception message.

      See Also:
        `verifies`

    - #### fails with

          @NotNull
          public static EnforceVerifyOrFail fails with(Verifies $this,
                                                                @NotNull
                                                                java.lang.String msg)

      See Also:
        `failsWith`