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

com.foursoft.vecmodel.vec120.AbstractVecTerminalCurrentInformationAssert 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 VecTerminalCurrentInformation} specific assertions - Generated by CustomAssertionGenerator.
 */
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecTerminalCurrentInformationAssert, A extends VecTerminalCurrentInformation> extends AbstractObjectAssert {

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

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

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

    // null safe check
    VecNumericalValue actualCoreCrossSectionArea = actual.getCoreCrossSectionArea();
    if (!Objects.areEqual(actualCoreCrossSectionArea, coreCrossSectionArea)) {
      failWithMessage(assertjErrorMessage, actual, coreCrossSectionArea, actualCoreCrossSectionArea);
    }

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

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

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

    // null safe check
    VecValueRange actualCurrentRange = actual.getCurrentRange();
    if (!Objects.areEqual(actualCurrentRange, currentRange)) {
      failWithMessage(assertjErrorMessage, actual, currentRange, actualCurrentRange);
    }

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

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

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

    // null safe check
    VecNumericalValue actualNominalVoltage = actual.getNominalVoltage();
    if (!Objects.areEqual(actualNominalVoltage, nominalVoltage)) {
      failWithMessage(assertjErrorMessage, actual, nominalVoltage, actualNominalVoltage);
    }

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

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

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

    // null safe check
    VecTerminalSpecification actualParentTerminalSpecification = actual.getParentTerminalSpecification();
    if (!Objects.areEqual(actualParentTerminalSpecification, parentTerminalSpecification)) {
      failWithMessage(assertjErrorMessage, actual, parentTerminalSpecification, actualParentTerminalSpecification);
    }

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

  /**
   * Verifies that the actual VecTerminalCurrentInformation's xmlId is equal to the given one.
   * @param xmlId the given xmlId to compare the actual VecTerminalCurrentInformation's xmlId to.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecTerminalCurrentInformation's xmlId is not equal to the given one.
   */
  public S hasXmlId(String xmlId) {
    // check that actual VecTerminalCurrentInformation 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;
  }

}