001package tech.uom.lib.assertj.assertions; 002 003import javax.measure.Unit; 004 005/** 006 * {@link Unit} specific assertions - Generated by CustomAssertionGenerator. 007 * 008 * Although this class is not final to allow Soft assertions proxy, if you wish to extend it, 009 * extend {@link AbstractUnitAssert} instead. 010 */ 011@javax.annotation.Generated(value="assertj-assertions-generator") 012public class UnitAssert extends AbstractUnitAssert<UnitAssert, Unit> { 013 014 /** 015 * Creates a new <code>{@link UnitAssert}</code> to make assertions on actual Unit. 016 * @param actual the Unit we want to make assertions on. 017 */ 018 public UnitAssert(Unit actual) { 019 super(actual, UnitAssert.class); 020 } 021 022 /** 023 * An entry point for UnitAssert to follow AssertJ standard <code>assertThat()</code> statements.<br> 024 * With a static import, one can write directly: <code>assertThat(myUnit)</code> and get specific assertion with code completion. 025 * @param actual the Unit we want to make assertions on. 026 * @return a new <code>{@link UnitAssert}</code> 027 */ 028 @org.assertj.core.util.CheckReturnValue 029 public static UnitAssert assertThat(Unit actual) { 030 return new UnitAssert(actual); 031 } 032}