Class RuntimeHintsInvocationsAssert

java.lang.Object
org.assertj.core.api.AbstractAssert<RuntimeHintsInvocationsAssert,RuntimeHintsInvocations>
org.springframework.aot.test.agent.RuntimeHintsInvocationsAssert
All Implemented Interfaces:
org.assertj.core.api.Assert<RuntimeHintsInvocationsAssert,RuntimeHintsInvocations>, org.assertj.core.api.Descriptable<RuntimeHintsInvocationsAssert>, org.assertj.core.api.ExtensionPoints<RuntimeHintsInvocationsAssert,RuntimeHintsInvocations>

public class RuntimeHintsInvocationsAssert extends org.assertj.core.api.AbstractAssert<RuntimeHintsInvocationsAssert,RuntimeHintsInvocations>
AssertJ assertions that can be applied to RuntimeHintsInvocations.
Since:
6.0
Author:
Brian Clozel
  • Field Summary

    Fields inherited from class org.assertj.core.api.AbstractAssert

    actual, info, myself, objects, throwUnsupportedExceptionOnEquals
  • Method Summary

    Modifier and Type
    Method
    Description
    hasCount(long count)
    Verifies that the count of recorded invocations match the expected one.
    void
    match(RuntimeHints runtimeHints)
    Verifies that each recorded invocation match at least once hint in the provided RuntimeHints.
    org.assertj.core.api.ListAssert<RecordedInvocation>
    notMatching(RuntimeHints runtimeHints)
     
     
     

    Methods inherited from class org.assertj.core.api.AbstractAssert

    areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.assertj.core.api.Descriptable

    as, as, as, describedAs
  • Method Details

    • withRegistrar

      public RuntimeHintsInvocationsAssert withRegistrar(RuntimeHintsRegistrar registrar)
    • withSpringFactoriesRegistrars

      public RuntimeHintsInvocationsAssert withSpringFactoriesRegistrars(String location)
    • match

      public void match(RuntimeHints runtimeHints)
      Verifies that each recorded invocation match at least once hint in the provided RuntimeHints.

      Example:

       RuntimeHints hints = new RuntimeHints();
       hints.reflection().registerType(MyType.class);
       assertThat(invocations).match(hints); 
      Parameters:
      runtimeHints - the runtime hints configuration to test against
      Throws:
      AssertionError - if any of the recorded invocations has no match in the provided hints
    • notMatching

      public org.assertj.core.api.ListAssert<RecordedInvocation> notMatching(RuntimeHints runtimeHints)
    • hasCount

      public RuntimeHintsInvocationsAssert hasCount(long count)
      Verifies that the count of recorded invocations match the expected one.

      Example:

       assertThat(invocations).hasCount(42); 
      Parameters:
      count - the expected invocations count
      Returns:
      this assertion object.
      Throws:
      AssertionError - if the number of recorded invocations doesn't match the expected one