Class ValidationAssertions
java.lang.Object
com.github.jinahya.assertj.validation.ValidationAssertions
A class for creating assertion instances.
- Author:
- Jin Kwon <onacit_at_gmail.com>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <ACTUAL> BeanAssert<?,
ACTUAL> assertThatBean
(ACTUAL actual) Creates a new assertion object for verifying specified bean object.static <SELF extends BeanAssert<SELF,
ACTUAL>, ACTUAL>
SELFassertThatBean
(Class<SELF> selfClass, ACTUAL actual) Creates a new assertion object for verifying specified bean object.static <SELF extends BeanAssert<SELF,
ACTUAL>, ACTUAL>
SELFassertThatBean
(Class<SELF> selfClass, Class<ACTUAL> actualType, ACTUAL actual) Creates a new assertion object for verifying specified bean object.static <ACTUAL> PropertyAssert<?,
ACTUAL> assertThatProperty
(ACTUAL actual) Creates a new assertion object for verifying specified value against a property of specific bean type.static <SELF extends PropertyAssert<SELF,
ACTUAL>, ACTUAL>
SELFassertThatProperty
(Class<SELF> selfClass, ACTUAL actual) Creates a new assertion object for verifying specified value against a property of specific bean type.static <SELF extends PropertyAssert<SELF,
ACTUAL>, ACTUAL>
SELFassertThatProperty
(Class<SELF> selfClass, Class<ACTUAL> actualClass, ACTUAL actual) Creates a new assertion object for verifying specified value against a property of specific bean type.static <SELF extends BeanAssert<SELF,
ACTUAL>, ACTUAL>
SELFassertThatVirtualBean
(Object actual) Creates a new assertion object for verifying specified bean object.static <SELF extends PropertyAssert<SELF,
ACTUAL>, ACTUAL>
SELFassertThatVirtualProperty
(Object actual) Creates a new assertion object for verifying specified value against a property of specific bean type.
-
Method Details
-
assertThatBean
Creates a new assertion object for verifying specified bean object.- Type Parameters:
ACTUAL
- type of actual bean- Parameters:
actual
- the actual bean object to verify.- Returns:
- a new assertion object for verifying
actual
.
-
assertThatBean
public static <SELF extends BeanAssert<SELF,ACTUAL>, SELF assertThatBeanACTUAL> (Class<SELF> selfClass, Class<ACTUAL> actualType, ACTUAL actual) Creates a new assertion object for verifying specified bean object.- Type Parameters:
SELF
- assertion type parameterACTUAL
- actual type parameter- Parameters:
selfClass
- type of assertion; notnull
.actualType
- type of actual; notnull
.actual
- the actual bean object to verify.- Returns:
- a new assertion object for verifying
actual
.
-
assertThatBean
public static <SELF extends BeanAssert<SELF,ACTUAL>, SELF assertThatBeanACTUAL> (Class<SELF> selfClass, ACTUAL actual) Creates a new assertion object for verifying specified bean object.- Type Parameters:
SELF
- assertion type parameterACTUAL
- actual type parameter- Parameters:
selfClass
- type of assertion.actual
- the actual bean object to verify; notnull
.- Returns:
- a new assertion object for verifying
actual
.
-
assertThatVirtualBean
public static <SELF extends BeanAssert<SELF,ACTUAL>, SELF assertThatVirtualBeanACTUAL> (Object actual) Creates a new assertion object for verifying specified bean object.- Type Parameters:
SELF
- assertion type parameterACTUAL
- actual type parameter- Parameters:
actual
- the actual bean object to verify; notnull
.- Returns:
- a new assertion object for verifying
actual
.
-
assertThatProperty
Creates a new assertion object for verifying specified value against a property of specific bean type.- Type Parameters:
ACTUAL
- type of actual value- Parameters:
actual
- the actual property value to verify.- Returns:
- a new assertion instance for
actual
.
-
assertThatProperty
public static <SELF extends PropertyAssert<SELF,ACTUAL>, SELF assertThatPropertyACTUAL> (Class<SELF> selfClass, Class<ACTUAL> actualClass, ACTUAL actual) Creates a new assertion object for verifying specified value against a property of specific bean type.- Type Parameters:
SELF
- type of assertionACTUAL
- type of actual value- Parameters:
selfClass
- assertion class.actualClass
- actual class.actual
- the actual property value to verify.- Returns:
- a new assertion instance for
actual
.
-
assertThatProperty
public static <SELF extends PropertyAssert<SELF,ACTUAL>, SELF assertThatPropertyACTUAL> (Class<SELF> selfClass, ACTUAL actual) Creates a new assertion object for verifying specified value against a property of specific bean type.- Type Parameters:
SELF
- type of assertionACTUAL
- type of actual value- Parameters:
selfClass
- assertion class.actual
- the actual property value to verify.- Returns:
- a new assertion instance for
actual
.
-
assertThatVirtualProperty
public static <SELF extends PropertyAssert<SELF,ACTUAL>, SELF assertThatVirtualPropertyACTUAL> (Object actual) Creates a new assertion object for verifying specified value against a property of specific bean type.- Type Parameters:
SELF
- type of assertionACTUAL
- type of actual value- Parameters:
actual
- the actual property value to verify.- Returns:
- a new assertion instance for
actual
.
-