All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.foursoft.vecmodel.vec120.AbstractVecTemperatureInformationAssert Maven / Gradle / Ivy

There is a newer version: 1.5.2
Show newest version
package com.foursoft.vecmodel.vec120;

import org.assertj.core.api.AbstractObjectAssert;
import org.assertj.core.util.Objects;

/**
 * Abstract base class for {@link VecTemperatureInformation} specific assertions - Generated by CustomAssertionGenerator.
 */
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecTemperatureInformationAssert, A extends VecTemperatureInformation> extends AbstractObjectAssert {

  /**
   * Creates a new {@link AbstractVecTemperatureInformationAssert} to make assertions on actual VecTemperatureInformation.
   * @param actual the VecTemperatureInformation we want to make assertions on.
   */
  protected AbstractVecTemperatureInformationAssert(A actual, Class selfType) {
    super(actual, selfType);
  }

  /**
   * Verifies that the actual VecTemperatureInformation's temperatureRange is equal to the given one.
   * @param temperatureRange the given temperatureRange to compare the actual VecTemperatureInformation's temperatureRange to.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecTemperatureInformation's temperatureRange is not equal to the given one.
   */
  public S hasTemperatureRange(VecValueRange temperatureRange) {
    // check that actual VecTemperatureInformation we want to make assertions on is not null.
    isNotNull();

    // overrides the default error message with a more explicit one
    String assertjErrorMessage = "\nExpecting temperatureRange of:\n  <%s>\nto be:\n  <%s>\nbut was:\n  <%s>";

    // null safe check
    VecValueRange actualTemperatureRange = actual.getTemperatureRange();
    if (!Objects.areEqual(actualTemperatureRange, temperatureRange)) {
      failWithMessage(assertjErrorMessage, actual, temperatureRange, actualTemperatureRange);
    }

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTemperatureInformation's temperatureType is equal to the given one.
   * @param temperatureType the given temperatureType to compare the actual VecTemperatureInformation's temperatureType to.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecTemperatureInformation's temperatureType is not equal to the given one.
   */
  public S hasTemperatureType(String temperatureType) {
    // check that actual VecTemperatureInformation we want to make assertions on is not null.
    isNotNull();

    // overrides the default error message with a more explicit one
    String assertjErrorMessage = "\nExpecting temperatureType of:\n  <%s>\nto be:\n  <%s>\nbut was:\n  <%s>";

    // null safe check
    String actualTemperatureType = actual.getTemperatureType();
    if (!Objects.areEqual(actualTemperatureType, temperatureType)) {
      failWithMessage(assertjErrorMessage, actual, temperatureType, actualTemperatureType);
    }

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTemperatureInformation's xmlId is equal to the given one.
   * @param xmlId the given xmlId to compare the actual VecTemperatureInformation's xmlId to.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecTemperatureInformation's xmlId is not equal to the given one.
   */
  public S hasXmlId(String xmlId) {
    // check that actual VecTemperatureInformation we want to make assertions on is not null.
    isNotNull();

    // overrides the default error message with a more explicit one
    String assertjErrorMessage = "\nExpecting xmlId of:\n  <%s>\nto be:\n  <%s>\nbut was:\n  <%s>";

    // null safe check
    String actualXmlId = actual.getXmlId();
    if (!Objects.areEqual(actualXmlId, xmlId)) {
      failWithMessage(assertjErrorMessage, actual, xmlId, actualXmlId);
    }

    // return the current assertion for method chaining
    return myself;
  }

}