Package tech.uom.lib.assertj.assertions
Class QuantityAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<SELF,ACTUAL>
org.assertj.core.api.AbstractObjectAssert<S,A>
tech.uom.lib.assertj.assertions.AbstractQuantityAssert<QuantityAssert,javax.measure.Quantity>
tech.uom.lib.assertj.assertions.QuantityAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<QuantityAssert,javax.measure.Quantity>,org.assertj.core.api.Descriptable<QuantityAssert>,org.assertj.core.api.ExtensionPoints<QuantityAssert,javax.measure.Quantity>
@Generated("assertj-assertions-generator") public class QuantityAssert extends AbstractQuantityAssert<QuantityAssert,javax.measure.Quantity>
Quantity specific assertions - Generated by CustomAssertionGenerator.
Although this class is not final to allow Soft assertions proxy, if you wish to extend it,
extend AbstractQuantityAssert instead.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description QuantityAssert(javax.measure.Quantity actual)Creates a newto make assertions on actual Quantity.QuantityAssert -
Method Summary
Modifier and Type Method Description static QuantityAssertassertThat(javax.measure.Quantity actual)An entry point for QuantityAssert to follow AssertJ standardassertThat()statements.
With a static import, one can write directly:assertThat(myQuantity)and get specific assertion with code completion.Methods inherited from class tech.uom.lib.assertj.assertions.AbstractQuantityAssert
hasUnit, hasValueMethods inherited from class org.assertj.core.api.AbstractObjectAssert
as, as, extracting, extracting, extracting, extracting, extracting, extracting, getComparatorsByType, hasAllNullFieldsOrProperties, hasAllNullFieldsOrPropertiesExcept, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, hasOnlyFields, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, newObjectAssert, returns, usingComparatorForFields, usingComparatorForType, usingRecursiveComparison, usingRecursiveComparisonMethods 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, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
-
Constructor Details
-
QuantityAssert
Creates a newto make assertions on actual Quantity.QuantityAssert- Parameters:
actual- the Quantity we want to make assertions on.
-
-
Method Details
-
assertThat
An entry point for QuantityAssert to follow AssertJ standardassertThat()statements.
With a static import, one can write directly:assertThat(myQuantity)and get specific assertion with code completion.- Parameters:
actual- the Quantity we want to make assertions on.- Returns:
- a new
QuantityAssert
-