Class QuantityAssert

java.lang.Object
org.assertj.core.api.AbstractAssert<QuantityAssert,javax.measure.Quantity>
org.assertj.core.api.AbstractObjectAssert<QuantityAssert,javax.measure.Quantity>
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

    Fields inherited from class org.assertj.core.api.AbstractAssert

    actual, info, myself
  • Constructor Summary

    Constructors
    Constructor
    Description
    QuantityAssert(javax.measure.Quantity actual)
    Creates a new QuantityAssert to make assertions on actual Quantity.
  • Method Summary

    Modifier and Type
    Method
    Description
    assertThat(javax.measure.Quantity actual)
    An entry point for QuantityAssert to follow AssertJ standard assertThat() 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, hasValue

    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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • QuantityAssert

      public QuantityAssert(javax.measure.Quantity actual)
      Creates a new QuantityAssert to make assertions on actual Quantity.
      Parameters:
      actual - the Quantity we want to make assertions on.
  • Method Details

    • assertThat

      public static QuantityAssert assertThat(javax.measure.Quantity actual)
      An entry point for QuantityAssert to follow AssertJ standard assertThat() 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