Package org.storynode.pigeon.assertion
Class OptionAssert<T>
java.lang.Object
org.assertj.core.api.AbstractAssert<OptionAssert<T>,Option<T>>
org.storynode.pigeon.assertion.OptionAssert<T>
- All Implemented Interfaces:
org.assertj.core.api.Assert<OptionAssert<T>,,Option<T>> org.assertj.core.api.Descriptable<OptionAssert<T>>,org.assertj.core.api.ExtensionPoints<OptionAssert<T>,Option<T>>
OptionAssert class.
- Author:
- Andrea Coronese
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionisEmpty()isEmpty.isNone()isNone.isNotEmpty.isSome()isSome.<U> OptionAssert<T> returns.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, usingRecursiveAssertion, usingRecursiveAssertion, 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, describedAs
-
Constructor Details
-
OptionAssert
Constructor for OptionAssert.- Parameters:
actual- aOptionobject
-
-
Method Details
-
isSome
isSome.- Returns:
- a
OptionAssertobject
-
isNone
isNone.- Returns:
- a
OptionAssertobject
-
isEmpty
isEmpty.- Returns:
- a
OptionAssertobject
-
isNotEmpty
isNotEmpty.- Returns:
- a
OptionAssertobject
-
returns
returns.- Type Parameters:
U- a U class- Parameters:
expected- a U objectprovider- aFunctionobject- Returns:
- a
OptionAssertobject
-