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

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

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

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

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

    // null safe check
    VecNumericalValue actualGridX = actual.getGridX();
    if (!Objects.areEqual(actualGridX, gridX)) {
      failWithMessage(assertjErrorMessage, actual, gridX, actualGridX);
    }

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

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

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

    // null safe check
    VecNumericalValue actualGridY = actual.getGridY();
    if (!Objects.areEqual(actualGridY, gridY)) {
      failWithMessage(assertjErrorMessage, actual, gridY, actualGridY);
    }

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

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

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

    // null safe check
    VecSlotSpecification actualParentSlotSpecification = actual.getParentSlotSpecification();
    if (!Objects.areEqual(actualParentSlotSpecification, parentSlotSpecification)) {
      failWithMessage(assertjErrorMessage, actual, parentSlotSpecification, actualParentSlotSpecification);
    }

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

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

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

    // null safe check
    java.math.BigInteger actualRowCount = actual.getRowCount();
    if (!Objects.areEqual(actualRowCount, rowCount)) {
      failWithMessage(assertjErrorMessage, actual, rowCount, actualRowCount);
    }

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

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

}