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 TypeMethodDescriptionhasCount
(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 providedRuntimeHints
.org.assertj.core.api.ListAssert<RecordedInvocation>
notMatching
(RuntimeHints runtimeHints) withRegistrar
(RuntimeHintsRegistrar registrar) withSpringFactoriesRegistrars
(String location) 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, usingRecursiveAssertion, usingRecursiveAssertion, 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
-
withSpringFactoriesRegistrars
-
match
Verifies that each recorded invocation match at least once hint in the providedRuntimeHints
.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
-
hasCount
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
-