Package tech.uom.lib.assertj.assertions
Class AbstractUnitAssert<S extends AbstractUnitAssert<S,A>,A extends javax.measure.Unit>
- java.lang.Object
-
- org.assertj.core.api.AbstractAssert<SELF,ACTUAL>
-
- org.assertj.core.api.AbstractObjectAssert<S,A>
-
- tech.uom.lib.assertj.assertions.AbstractUnitAssert<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:
UnitAssert
@Generated("assertj-assertions-generator") public abstract class AbstractUnitAssert<S extends AbstractUnitAssert<S,A>,A extends javax.measure.Unit> extends org.assertj.core.api.AbstractObjectAssert<S,A>
Abstract base class forUnit
specific assertions - Generated by CustomAssertionGenerator.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractUnitAssert(A actual, java.lang.Class<S> selfType)
Creates a new
to make assertions on actual Unit.AbstractUnitAssert
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S
hasBaseUnits(java.util.Map baseUnits)
Verifies that the actual Unit's baseUnits is equal to the given one.S
hasDimension(javax.measure.Dimension dimension)
Verifies that the actual Unit's dimension is equal to the given one.S
hasName(java.lang.String name)
Verifies that the actual Unit's name is equal to the given one.S
hasSymbol(java.lang.String symbol)
Verifies that the actual Unit's symbol is equal to the given one.S
hasSystemUnit(javax.measure.Unit systemUnit)
Verifies that the actual Unit's systemUnit is equal to the given one.-
Methods inherited from class org.assertj.core.api.AbstractObjectAssert
as, as, doesNotReturn, extracting, extracting, extracting, extracting, extracting, extracting, extractingForProxy, getComparatorsByType, hasAllNullFieldsOrProperties, hasAllNullFieldsOrPropertiesExcept, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, hasOnlyFields, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, newObjectAssert, returns, usingComparatorForFields, usingComparatorForType, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison
-
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, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
-
-
-
-
Constructor Detail
-
AbstractUnitAssert
protected AbstractUnitAssert(A actual, java.lang.Class<S> selfType)
Creates a new
to make assertions on actual Unit.AbstractUnitAssert
- Parameters:
actual
- the Unit we want to make assertions on.
-
-
Method Detail
-
hasBaseUnits
public S hasBaseUnits(java.util.Map baseUnits)
Verifies that the actual Unit's baseUnits is equal to the given one.- Parameters:
baseUnits
- the given baseUnits to compare the actual Unit's baseUnits to.- Returns:
- this assertion object.
- Throws:
java.lang.AssertionError
- - if the actual Unit's baseUnits is not equal to the given one.
-
hasDimension
public S hasDimension(javax.measure.Dimension dimension)
Verifies that the actual Unit's dimension is equal to the given one.- Parameters:
dimension
- the given dimension to compare the actual Unit's dimension to.- Returns:
- this assertion object.
- Throws:
java.lang.AssertionError
- - if the actual Unit's dimension is not equal to the given one.
-
hasName
public S hasName(java.lang.String name)
Verifies that the actual Unit's name is equal to the given one.- Parameters:
name
- the given name to compare the actual Unit's name to.- Returns:
- this assertion object.
- Throws:
java.lang.AssertionError
- - if the actual Unit's name is not equal to the given one.
-
hasSymbol
public S hasSymbol(java.lang.String symbol)
Verifies that the actual Unit's symbol is equal to the given one.- Parameters:
symbol
- the given symbol to compare the actual Unit's symbol to.- Returns:
- this assertion object.
- Throws:
java.lang.AssertionError
- - if the actual Unit's symbol is not equal to the given one.
-
hasSystemUnit
public S hasSystemUnit(javax.measure.Unit systemUnit)
Verifies that the actual Unit's systemUnit is equal to the given one.- Parameters:
systemUnit
- the given systemUnit to compare the actual Unit's systemUnit to.- Returns:
- this assertion object.
- Throws:
java.lang.AssertionError
- - if the actual Unit's systemUnit is not equal to the given one.
-
-