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

net.corda.testing.dsl

## Interface Verifies

- All Known Subinterfaces:
    LedgerDSLInterpreter<T>, TransactionDSLInterpreter
  All Known Implementing Classes:
    LedgerDSL, TestLedgerDSLInterpreter, TestTransactionDSLInterpreter, TransactionDSL

      @DoNotImplement
      public Verifies

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

- - ### Constructor Detail

    - #### Verifies

          public Verifies()

  - ### Method Detail

    - #### verifies

          @NotNull
          EnforceVerifyOrFail verifies()

      Verifies the ledger/transaction, throws if the verification fails.

    - #### failsWith

          @NotNull
          EnforceVerifyOrFail failsWith(@Nullable
                                                 java.lang.String expectedMessage)

      Asserts that verifies() throws.

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

    - #### fails

          @NotNull
          EnforceVerifyOrFail fails()

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

      See Also:
        `verifies`

    - #### fails with

          @NotNull
          EnforceVerifyOrFail fails with(@NotNull
                                                  java.lang.String msg)

      See Also:
        `failsWith`