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

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

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

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

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

    // null safe check
    VecNumericalValue actualHoleDiameter = actual.getHoleDiameter();
    if (!Objects.areEqual(actualHoleDiameter, holeDiameter)) {
      failWithMessage(assertjErrorMessage, actual, holeDiameter, actualHoleDiameter);
    }

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

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

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

    // null safe check
    String actualHoleShape = actual.getHoleShape();
    if (!Objects.areEqual(actualHoleShape, holeShape)) {
      failWithMessage(assertjErrorMessage, actual, holeShape, actualHoleShape);
    }

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

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

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

    // null safe check
    String actualHoleType = actual.getHoleType();
    if (!Objects.areEqual(actualHoleType, holeType)) {
      failWithMessage(assertjErrorMessage, actual, holeType, actualHoleType);
    }

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

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

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

    // null safe check
    VecValueRange actualPlateThickness = actual.getPlateThickness();
    if (!Objects.areEqual(actualPlateThickness, plateThickness)) {
      failWithMessage(assertjErrorMessage, actual, plateThickness, actualPlateThickness);
    }

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

}