Class AbstractPersonAssert<S extends AbstractPersonAssert<S,A>,A extends Person>
java.lang.Object
org.assertj.core.api.AbstractAssert<SELF,ACTUAL>
org.assertj.core.api.AbstractObjectAssert<S,A>
info.ejava.examples.app.testing.testbasics.AbstractPersonAssert<S,A>
- All Implemented Interfaces:
org.assertj.core.api.Assert<S,
,A> org.assertj.core.api.Descriptable<S>
,org.assertj.core.api.ExtensionPoints<S,
A>
- Direct Known Subclasses:
PersonAssert
@Generated("assertj-assertions-generator")
public abstract class AbstractPersonAssert<S extends AbstractPersonAssert<S,A>,A extends Person>
extends org.assertj.core.api.AbstractObjectAssert<S,A>
Abstract base class for
Person
specific assertions - Generated by CustomAssertionGenerator.-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractPersonAssert
(A actual, Class<S> selfType) Creates a new
to make assertions on actual Person.AbstractPersonAssert
-
Method Summary
Modifier and TypeMethodDescriptionVerifies that the actual Person's dob is equal to the given one.hasFirstName
(String firstName) Verifies that the actual Person's firstName is equal to the given one.hasLastName
(String lastName) Verifies that the actual Person's lastName is equal to the given one.Methods inherited from class org.assertj.core.api.AbstractObjectAssert
as, as, doesNotReturn, extracting, extracting, extracting, extracting, extracting, extracting, extractingForProxy, getComparatorsByType, hasAllNullFieldsOrProperties, hasAllNullFieldsOrPropertiesExcept, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, hasOnlyFields, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, newObjectAssert, returns, usingComparatorForFields, usingComparatorForType, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison
Methods inherited from class org.assertj.core.api.AbstractAssert
areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, 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, 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, describedAs, describedAs
-
Constructor Details
-
AbstractPersonAssert
Creates a new
to make assertions on actual Person.AbstractPersonAssert
- Parameters:
actual
- the Person we want to make assertions on.
-
-
Method Details
-
hasDob
Verifies that the actual Person's dob is equal to the given one.- Parameters:
dob
- the given dob to compare the actual Person's dob to.- Returns:
- this assertion object.
- Throws:
AssertionError
- - if the actual Person's dob is not equal to the given one.
-
hasFirstName
Verifies that the actual Person's firstName is equal to the given one.- Parameters:
firstName
- the given firstName to compare the actual Person's firstName to.- Returns:
- this assertion object.
- Throws:
AssertionError
- - if the actual Person's firstName is not equal to the given one.
-
hasLastName
Verifies that the actual Person's lastName is equal to the given one.- Parameters:
lastName
- the given lastName to compare the actual Person's lastName to.- Returns:
- this assertion object.
- Throws:
AssertionError
- - if the actual Person's lastName is not equal to the given one.
-