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

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

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

import org.assertj.core.util.Objects;

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

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

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

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

    // null safe check
    VecNumericalValue actualFMax = actual.getFMax();
    if (!Objects.areEqual(actualFMax, fMax)) {
      failWithMessage(assertjErrorMessage, actual, fMax, actualFMax);
    }

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

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

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

    // null safe check
    VecNumericalValue actualFMin = actual.getFMin();
    if (!Objects.areEqual(actualFMin, fMin)) {
      failWithMessage(assertjErrorMessage, actual, fMin, actualFMin);
    }

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

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

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

    // null safe check
    VecNumericalValue actualImpedance = actual.getImpedance();
    if (!Objects.areEqual(actualImpedance, impedance)) {
      failWithMessage(assertjErrorMessage, actual, impedance, actualImpedance);
    }

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

}