Package tech.uom.lib.assertj.assertions
Class AbstractQuantityAssert<S extends AbstractQuantityAssert<S,A>,A extends javax.measure.Quantity>
java.lang.Object
org.assertj.core.api.AbstractAssert<SELF,ACTUAL>
org.assertj.core.api.AbstractObjectAssert<S,A>
tech.uom.lib.assertj.assertions.AbstractQuantityAssert<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:
QuantityAssert
@Generated("assertj-assertions-generator")
public abstract class AbstractQuantityAssert<S extends AbstractQuantityAssert<S,A>,A extends javax.measure.Quantity>
extends org.assertj.core.api.AbstractObjectAssert<S,A>
Abstract base class for
Quantity
specific assertions - Generated by CustomAssertionGenerator.-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractQuantityAssert
(A actual, Class<S> selfType) Creates a new
to make assertions on actual Quantity.AbstractQuantityAssert
-
Method Summary
Methods inherited from class org.assertj.core.api.AbstractObjectAssert
as, as, defaultTypeComparators, extracting, extracting, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, returns, usingComparatorForFields, usingComparatorForType
Methods inherited from class org.assertj.core.api.AbstractAssert
asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, overridingErrorMessage, satisfies, setCustomRepresentation, throwAssertionError, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnError
-
Constructor Details
-
AbstractQuantityAssert
Creates a new
to make assertions on actual Quantity.AbstractQuantityAssert
- Parameters:
actual
- the Quantity we want to make assertions on.
-
-
Method Details
-
hasUnit
Verifies that the actual Quantity's unit is equal to the given one.- Parameters:
unit
- the given unit to compare the actual Quantity's unit to.- Returns:
- this assertion object.
- Throws:
AssertionError
- - if the actual Quantity's unit is not equal to the given one.
-
hasValue
Verifies that the actual Quantity's value is equal to the given one.- Parameters:
value
- the given value to compare the actual Quantity's value to.- Returns:
- this assertion object.
- Throws:
AssertionError
- - if the actual Quantity's value is not equal to the given one.
-