Class UnitAssert

java.lang.Object
org.assertj.core.api.AbstractAssert<SELF,​ACTUAL>
org.assertj.core.api.AbstractObjectAssert<S,​A>
tech.uom.lib.assertj.assertions.AbstractUnitAssert<UnitAssert,​javax.measure.Unit>
tech.uom.lib.assertj.assertions.UnitAssert
All Implemented Interfaces:
org.assertj.core.api.Assert<UnitAssert,​javax.measure.Unit>, org.assertj.core.api.Descriptable<UnitAssert>, org.assertj.core.api.ExtensionPoints<UnitAssert,​javax.measure.Unit>

@Generated("assertj-assertions-generator")
public class UnitAssert
extends AbstractUnitAssert<UnitAssert,​javax.measure.Unit>
Unit specific assertions - Generated by CustomAssertionGenerator.

Although this class is not final to allow Soft assertions proxy, if you wish to extend it, extend AbstractUnitAssert instead.

  • Field Summary

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

    actual, info, myself, objects, throwUnsupportedExceptionOnEquals
  • Constructor Summary

    Constructors 
    Constructor Description
    UnitAssert​(javax.measure.Unit actual)
    Creates a new UnitAssert to make assertions on actual Unit.
  • Method Summary

    Modifier and Type Method Description
    static UnitAssert assertThat​(javax.measure.Unit actual)
    An entry point for UnitAssert to follow AssertJ standard assertThat() statements.
    With a static import, one can write directly: assertThat(myUnit) and get specific assertion with code completion.

    Methods inherited from class tech.uom.lib.assertj.assertions.AbstractUnitAssert

    hasBaseUnits, hasDimension, hasName, hasSymbol, hasSystemUnit

    Methods 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, usingRecursiveComparison

    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, 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, describedAs
  • Constructor Details

    • UnitAssert

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

    • assertThat

      public static UnitAssert assertThat​(javax.measure.Unit actual)
      An entry point for UnitAssert to follow AssertJ standard assertThat() statements.
      With a static import, one can write directly: assertThat(myUnit) and get specific assertion with code completion.
      Parameters:
      actual - the Unit we want to make assertions on.
      Returns:
      a new UnitAssert