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

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

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

  /**
   * Verifies that the actual VecPotentialDistributorSpecification's boltDiameter is equal to the given one.
   * @param boltDiameter the given boltDiameter to compare the actual VecPotentialDistributorSpecification's boltDiameter to.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecPotentialDistributorSpecification's boltDiameter is not equal to the given one.
   */
  public S hasBoltDiameter(VecNumericalValue boltDiameter) {
    // check that actual VecPotentialDistributorSpecification 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 VecPotentialDistributorSpecification's boltType is equal to the given one.
   * @param boltType the given boltType to compare the actual VecPotentialDistributorSpecification's boltType to.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecPotentialDistributorSpecification's boltType is not equal to the given one.
   */
  public S hasBoltType(String boltType) {
    // check that actual VecPotentialDistributorSpecification 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 VecPotentialDistributorSpecification is screwable.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecPotentialDistributorSpecification is not screwable.
   */
  public S isScrewable() {
    // check that actual VecPotentialDistributorSpecification we want to make assertions on is not null.
    isNotNull();

    // null safe check
    if (Objects.areEqual(Boolean.FALSE, actual.isScrewable())) {
      failWithMessage("\nExpecting that actual VecPotentialDistributorSpecification is screwable but is not.");
    }

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

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

    // null safe check
    if (Objects.areEqual(Boolean.TRUE, actual.isScrewable())) {
      failWithMessage("\nExpecting that actual VecPotentialDistributorSpecification is not screwable but is.");
    }

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

}