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

com.foursoft.vecmodel.vec120.AbstractVecPinWireMappingPointAssert Maven / Gradle / Ivy

There is a newer version: 1.5.2
Show newest version
package com.foursoft.vecmodel.vec120;

import org.assertj.core.api.AbstractObjectAssert;
import org.assertj.core.util.Objects;

/**
 * Abstract base class for {@link VecPinWireMappingPoint} specific assertions - Generated by CustomAssertionGenerator.
 */
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecPinWireMappingPointAssert, A extends VecPinWireMappingPoint> extends AbstractObjectAssert {

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

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

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

    // null safe check
    VecContactPoint actualContactPoint = actual.getContactPoint();
    if (!Objects.areEqual(actualContactPoint, contactPoint)) {
      failWithMessage(assertjErrorMessage, actual, contactPoint, actualContactPoint);
    }

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

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

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

    // null safe check
    VecPinWireMappingSpecification actualParentPinWireMappingSpecification = actual.getParentPinWireMappingSpecification();
    if (!Objects.areEqual(actualParentPinWireMappingSpecification, parentPinWireMappingSpecification)) {
      failWithMessage(assertjErrorMessage, actual, parentPinWireMappingSpecification, actualParentPinWireMappingSpecification);
    }

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

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

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

    // null safe check
    VecPinComponentReference actualPinComponentReference = actual.getPinComponentReference();
    if (!Objects.areEqual(actualPinComponentReference, pinComponentReference)) {
      failWithMessage(assertjErrorMessage, actual, pinComponentReference, actualPinComponentReference);
    }

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

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

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

    // null safe check
    String actualXmlId = actual.getXmlId();
    if (!Objects.areEqual(actualXmlId, xmlId)) {
      failWithMessage(assertjErrorMessage, actual, xmlId, actualXmlId);
    }

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

}