Package org.assertj.reflection
Class ConstructorAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<ConstructorAssert,Constructor<?>>
org.assertj.reflection.ConstructorAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<ConstructorAssert,,Constructor<?>> org.assertj.core.api.Descriptable<ConstructorAssert>,org.assertj.core.api.ExtensionPoints<ConstructorAssert,Constructor<?>>
public class ConstructorAssert
extends org.assertj.core.api.AbstractAssert<ConstructorAssert,Constructor<?>>
Assertions for the
Constructor type.-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructorAssert(Constructor<?> actual) Creates a newConstructorAssert. -
Method Summary
Modifier and TypeMethodDescriptionVerifies that theConstructoris not package-private.Verifies that theConstructoris not private.Verifies that theConstructoris not protected.Verifies that theConstructoris not public.Verifies that theConstructoris package-private.Verifies that theConstructoris private.Verifies that theConstructoris protected.isPublic()Verifies that theConstructoris public.Methods inherited from class org.assertj.core.api.AbstractAssert
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, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnErrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs
-
Constructor Details
-
ConstructorAssert
Creates a newConstructorAssert.- Parameters:
actual- The actual value.
-
-
Method Details
-
isPublic
Verifies that theConstructoris public.- Returns:
- This
ConstructorAssertinstance.
-
isNotPublic
Verifies that theConstructoris not public.- Returns:
- This
ConstructorAssertinstance.
-
isProtected
Verifies that theConstructoris protected.- Returns:
- This
ConstructorAssertinstance.
-
isNotProtected
Verifies that theConstructoris not protected.- Returns:
- This
ConstructorAssertinstance.
-
isPrivate
Verifies that theConstructoris private.- Returns:
- This
ConstructorAssertinstance.
-
isNotPrivate
Verifies that theConstructoris not private.- Returns:
- This
ConstructorAssertinstance.
-
isPackagePrivate
Verifies that theConstructoris package-private.- Returns:
- This
ConstructorAssertinstance.
-
isNotPackagePrivate
Verifies that theConstructoris not package-private.- Returns:
- This
ConstructorAssertinstance.
-