Package org.assertj.reflection
Class ReflectionAssertions
java.lang.Object
org.assertj.reflection.ReflectionAssertions
Entry point for assertion methods for different reflection types.
Each method in this class is a static factory for a type-specific assertion object.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassAssertassertThat(Class<?> actual) Creates a new instance ofClassAssert.static ConstructorAssertassertThat(Constructor<?> actual) Creates a new instance ofConstructorAssert.static FieldAssertassertThat(Field actual) Creates a new instance ofFieldAssert.static MethodAssertassertThat(Method actual) Creates a new instance ofMethodAssert.
-
Method Details
-
assertThat
Creates a new instance ofClassAssert.- Parameters:
actual- The actual value.- Returns:
- The created assertion object.
-
assertThat
Creates a new instance ofConstructorAssert.- Parameters:
actual- The actual value.- Returns:
- The created assertion object.
-
assertThat
Creates a new instance ofFieldAssert.- Parameters:
actual- The actual value.- Returns:
- The created assertion object.
-
assertThat
Creates a new instance ofMethodAssert.- Parameters:
actual- The actual value.- Returns:
- The created assertion object.
-