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

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

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

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

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

    // null safe check
    VecNumericalValue actualBoltDiameter = actual.getBoltDiameter();
    if (!Objects.areEqual(actualBoltDiameter, boltDiameter)) {
      failWithMessage(assertjErrorMessage, actual, boltDiameter, actualBoltDiameter);
    }

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

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

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

    // null safe check
    VecNumericalValue actualBoltHeight = actual.getBoltHeight();
    if (!Objects.areEqual(actualBoltHeight, boltHeight)) {
      failWithMessage(assertjErrorMessage, actual, boltHeight, actualBoltHeight);
    }

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

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

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

    // null safe check
    Object actualBoltNominalSize = actual.getBoltNominalSize();
    if (!Objects.areEqual(actualBoltNominalSize, boltNominalSize)) {
      failWithMessage(assertjErrorMessage, actual, boltNominalSize, actualBoltNominalSize);
    }

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

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

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

    // null safe check
    String actualBoltType = actual.getBoltType();
    if (!Objects.areEqual(actualBoltType, boltType)) {
      failWithMessage(assertjErrorMessage, actual, boltType, actualBoltType);
    }

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

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

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

    // null safe check
    java.math.BigInteger actualMaxTerminalCount = actual.getMaxTerminalCount();
    if (!Objects.areEqual(actualMaxTerminalCount, maxTerminalCount)) {
      failWithMessage(assertjErrorMessage, actual, maxTerminalCount, actualMaxTerminalCount);
    }

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

  /**
   * Verifies that the actual VecBoltTerminalSpecification is torsion protection.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecBoltTerminalSpecification is not torsion protection.
   */
  public S isTorsionProtection() {
    // check that actual VecBoltTerminalSpecification we want to make assertions on is not null.
    isNotNull();

    // null safe check
    if (Objects.areEqual(Boolean.FALSE, actual.isTorsionProtection())) {
      failWithMessage("\nExpecting that actual VecBoltTerminalSpecification is torsion protection but is not.");
    }

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

  /**
   * Verifies that the actual VecBoltTerminalSpecification is not torsion protection.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecBoltTerminalSpecification is torsion protection.
   */
  public S isNotTorsionProtection() {
    // check that actual VecBoltTerminalSpecification we want to make assertions on is not null.
    isNotNull();

    // null safe check
    if (Objects.areEqual(Boolean.TRUE, actual.isTorsionProtection())) {
      failWithMessage("\nExpecting that actual VecBoltTerminalSpecification is not torsion protection but is.");
    }

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

}