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

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

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

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

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

    // null safe check
    String actualIdentificationA = actual.getIdentificationA();
    if (!Objects.areEqual(actualIdentificationA, identificationA)) {
      failWithMessage(assertjErrorMessage, actual, identificationA, actualIdentificationA);
    }

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

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

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

    // null safe check
    String actualIdentificationB = actual.getIdentificationB();
    if (!Objects.areEqual(actualIdentificationB, identificationB)) {
      failWithMessage(assertjErrorMessage, actual, identificationB, actualIdentificationB);
    }

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

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

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

    // null safe check
    VecSlotMapping actualParentSlotMapping = actual.getParentSlotMapping();
    if (!Objects.areEqual(actualParentSlotMapping, parentSlotMapping)) {
      failWithMessage(assertjErrorMessage, actual, parentSlotMapping, actualParentSlotMapping);
    }

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

  /**
   * Verifies that the actual VecCavityMapping's xmlId is equal to the given one.
   * @param xmlId the given xmlId to compare the actual VecCavityMapping's xmlId to.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecCavityMapping's xmlId is not equal to the given one.
   */
  public S hasXmlId(String xmlId) {
    // check that actual VecCavityMapping 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;
  }

}