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
ModifierConstructorDescriptionprotected
ConstructorAssert
(Constructor<?> actual) Creates a newConstructorAssert
. -
Method Summary
Modifier and TypeMethodDescriptionVerifies that theConstructor
is not package-private.Verifies that theConstructor
is not private.Verifies that theConstructor
is not protected.Verifies that theConstructor
is not public.Verifies that theConstructor
is package-private.Verifies that theConstructor
is private.Verifies that theConstructor
is protected.isPublic()
Verifies that theConstructor
is 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, 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, as, as, describedAs
-
Constructor Details
-
ConstructorAssert
Creates a newConstructorAssert
.- Parameters:
actual
- The actual value.
-
-
Method Details
-
isPublic
Verifies that theConstructor
is public.- Returns:
- This
ConstructorAssert
instance.
-
isNotPublic
Verifies that theConstructor
is not public.- Returns:
- This
ConstructorAssert
instance.
-
isProtected
Verifies that theConstructor
is protected.- Returns:
- This
ConstructorAssert
instance.
-
isNotProtected
Verifies that theConstructor
is not protected.- Returns:
- This
ConstructorAssert
instance.
-
isPrivate
Verifies that theConstructor
is private.- Returns:
- This
ConstructorAssert
instance.
-
isNotPrivate
Verifies that theConstructor
is not private.- Returns:
- This
ConstructorAssert
instance.
-
isPackagePrivate
Verifies that theConstructor
is package-private.- Returns:
- This
ConstructorAssert
instance.
-
isNotPackagePrivate
Verifies that theConstructor
is not package-private.- Returns:
- This
ConstructorAssert
instance.
-