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

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

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

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

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

    // null safe check
    VecCavityReference actualEquippedCavityRef = actual.getEquippedCavityRef();
    if (!Objects.areEqual(actualEquippedCavityRef, equippedCavityRef)) {
      failWithMessage(assertjErrorMessage, actual, equippedCavityRef, actualEquippedCavityRef);
    }

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

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

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

    // null safe check
    VecCavityMounting actualParentCavityMounting = actual.getParentCavityMounting();
    if (!Objects.areEqual(actualParentCavityMounting, parentCavityMounting)) {
      failWithMessage(assertjErrorMessage, actual, parentCavityMounting, actualParentCavityMounting);
    }

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

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

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

    // null safe check
    VecTerminalReceptionReference actualTerminalReceptionReference = actual.getTerminalReceptionReference();
    if (!Objects.areEqual(actualTerminalReceptionReference, terminalReceptionReference)) {
      failWithMessage(assertjErrorMessage, actual, terminalReceptionReference, actualTerminalReceptionReference);
    }

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

}