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 ClassAssert
assertThat
(Class<?> actual) Creates a new instance ofClassAssert
.static ConstructorAssert
assertThat
(Constructor<?> actual) Creates a new instance ofConstructorAssert
.static FieldAssert
assertThat
(Field actual) Creates a new instance ofFieldAssert
.static MethodAssert
assertThat
(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.
-