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

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

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

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

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

    // null safe check
    VecConnection actualConnection = actual.getConnection();
    if (!Objects.areEqual(actualConnection, connection)) {
      failWithMessage(assertjErrorMessage, actual, connection, actualConnection);
    }

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

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

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

    // null safe check
    VecTerminalReceptionReference actualFirstTerminalReception = actual.getFirstTerminalReception();
    if (!Objects.areEqual(actualFirstTerminalReception, firstTerminalReception)) {
      failWithMessage(assertjErrorMessage, actual, firstTerminalReception, actualFirstTerminalReception);
    }

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

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

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

    // null safe check
    String actualIdentification = actual.getIdentification();
    if (!Objects.areEqual(actualIdentification, identification)) {
      failWithMessage(assertjErrorMessage, actual, identification, actualIdentification);
    }

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

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

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

    // null safe check
    VecMatingPoint actualParentMatingPoint = actual.getParentMatingPoint();
    if (!Objects.areEqual(actualParentMatingPoint, parentMatingPoint)) {
      failWithMessage(assertjErrorMessage, actual, parentMatingPoint, actualParentMatingPoint);
    }

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

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

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

    // null safe check
    VecTerminalReceptionReference actualSecondTerminalReception = actual.getSecondTerminalReception();
    if (!Objects.areEqual(actualSecondTerminalReception, secondTerminalReception)) {
      failWithMessage(assertjErrorMessage, actual, secondTerminalReception, actualSecondTerminalReception);
    }

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

}