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

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

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

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

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

    // null safe check
    VecLocation actualFirstLocation = actual.getFirstLocation();
    if (!Objects.areEqual(actualFirstLocation, firstLocation)) {
      failWithMessage(assertjErrorMessage, actual, firstLocation, actualFirstLocation);
    }

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

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

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

    // null safe check
    VecZoneAssignment actualParentZoneAssignment = actual.getParentZoneAssignment();
    if (!Objects.areEqual(actualParentZoneAssignment, parentZoneAssignment)) {
      failWithMessage(assertjErrorMessage, actual, parentZoneAssignment, actualParentZoneAssignment);
    }

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

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

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

    // null safe check
    VecLocation actualSecondLocation = actual.getSecondLocation();
    if (!Objects.areEqual(actualSecondLocation, secondLocation)) {
      failWithMessage(assertjErrorMessage, actual, secondLocation, actualSecondLocation);
    }

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

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

}