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

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

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

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

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

    // null safe check
    VecNumericalValue actualCorrugationGradient = actual.getCorrugationGradient();
    if (!Objects.areEqual(actualCorrugationGradient, corrugationGradient)) {
      failWithMessage(assertjErrorMessage, actual, corrugationGradient, actualCorrugationGradient);
    }

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

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

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

    // null safe check
    VecNumericalValue actualCorrugationHeight = actual.getCorrugationHeight();
    if (!Objects.areEqual(actualCorrugationHeight, corrugationHeight)) {
      failWithMessage(assertjErrorMessage, actual, corrugationHeight, actualCorrugationHeight);
    }

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

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

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

    // null safe check
    VecNumericalValue actualCorrugationWidth = actual.getCorrugationWidth();
    if (!Objects.areEqual(actualCorrugationWidth, corrugationWidth)) {
      failWithMessage(assertjErrorMessage, actual, corrugationWidth, actualCorrugationWidth);
    }

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

}