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

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

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

import org.assertj.core.internal.Iterables;
import org.assertj.core.util.Objects;

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

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

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

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

    // null safe check
    String actualCavityDesign = actual.getCavityDesign();
    if (!Objects.areEqual(actualCavityDesign, cavityDesign)) {
      failWithMessage(assertjErrorMessage, actual, cavityDesign, actualCavityDesign);
    }

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

  /**
   * Verifies that the actual VecTerminalReceptionSpecification's platingMaterials contains the given VecMaterial elements.
   * @param platingMaterials the given elements that should be contained in actual VecTerminalReceptionSpecification's platingMaterials.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTerminalReceptionSpecification's platingMaterials does not contain all given VecMaterial elements.
   */
  public S hasPlatingMaterials(VecMaterial... platingMaterials) {
    // check that actual VecTerminalReceptionSpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecMaterial varargs is not null.
    if (platingMaterials == null) failWithMessage("Expecting platingMaterials parameter not to be null.");

    // check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
    Iterables.instance().assertContains(info, actual.getPlatingMaterials(), platingMaterials);

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

  /**
   * Verifies that the actual VecTerminalReceptionSpecification's platingMaterials contains the given VecMaterial elements in Collection.
   * @param platingMaterials the given elements that should be contained in actual VecTerminalReceptionSpecification's platingMaterials.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTerminalReceptionSpecification's platingMaterials does not contain all given VecMaterial elements.
   */
  public S hasPlatingMaterials(java.util.Collection platingMaterials) {
    // check that actual VecTerminalReceptionSpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecMaterial collection is not null.
    if (platingMaterials == null) {
      failWithMessage("Expecting platingMaterials parameter not to be null.");
      return myself; // to fool Eclipse "Null pointer access" warning on toArray.
    }

    // check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
    Iterables.instance().assertContains(info, actual.getPlatingMaterials(), platingMaterials.toArray());

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

  /**
   * Verifies that the actual VecTerminalReceptionSpecification's platingMaterials contains only the given VecMaterial elements and nothing else in whatever order.
   * @param platingMaterials the given elements that should be contained in actual VecTerminalReceptionSpecification's platingMaterials.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTerminalReceptionSpecification's platingMaterials does not contain all given VecMaterial elements.
   */
  public S hasOnlyPlatingMaterials(VecMaterial... platingMaterials) {
    // check that actual VecTerminalReceptionSpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecMaterial varargs is not null.
    if (platingMaterials == null) failWithMessage("Expecting platingMaterials parameter not to be null.");

    // check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
    Iterables.instance().assertContainsOnly(info, actual.getPlatingMaterials(), platingMaterials);

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

  /**
   * Verifies that the actual VecTerminalReceptionSpecification's platingMaterials contains only the given VecMaterial elements in Collection and nothing else in whatever order.
   * @param platingMaterials the given elements that should be contained in actual VecTerminalReceptionSpecification's platingMaterials.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTerminalReceptionSpecification's platingMaterials does not contain all given VecMaterial elements.
   */
  public S hasOnlyPlatingMaterials(java.util.Collection platingMaterials) {
    // check that actual VecTerminalReceptionSpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecMaterial collection is not null.
    if (platingMaterials == null) {
      failWithMessage("Expecting platingMaterials parameter not to be null.");
      return myself; // to fool Eclipse "Null pointer access" warning on toArray.
    }

    // check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
    Iterables.instance().assertContainsOnly(info, actual.getPlatingMaterials(), platingMaterials.toArray());

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

  /**
   * Verifies that the actual VecTerminalReceptionSpecification's platingMaterials does not contain the given VecMaterial elements.
   *
   * @param platingMaterials the given elements that should not be in actual VecTerminalReceptionSpecification's platingMaterials.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTerminalReceptionSpecification's platingMaterials contains any given VecMaterial elements.
   */
  public S doesNotHavePlatingMaterials(VecMaterial... platingMaterials) {
    // check that actual VecTerminalReceptionSpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecMaterial varargs is not null.
    if (platingMaterials == null) failWithMessage("Expecting platingMaterials parameter not to be null.");

    // check with standard error message (use overridingErrorMessage before contains to set your own message).
    Iterables.instance().assertDoesNotContain(info, actual.getPlatingMaterials(), platingMaterials);

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

  /**
   * Verifies that the actual VecTerminalReceptionSpecification's platingMaterials does not contain the given VecMaterial elements in Collection.
   *
   * @param platingMaterials the given elements that should not be in actual VecTerminalReceptionSpecification's platingMaterials.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTerminalReceptionSpecification's platingMaterials contains any given VecMaterial elements.
   */
  public S doesNotHavePlatingMaterials(java.util.Collection platingMaterials) {
    // check that actual VecTerminalReceptionSpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecMaterial collection is not null.
    if (platingMaterials == null) {
      failWithMessage("Expecting platingMaterials parameter not to be null.");
      return myself; // to fool Eclipse "Null pointer access" warning on toArray.
    }

    // check with standard error message (use overridingErrorMessage before contains to set your own message).
    Iterables.instance().assertDoesNotContain(info, actual.getPlatingMaterials(), platingMaterials.toArray());

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

  /**
   * Verifies that the actual VecTerminalReceptionSpecification has no platingMaterials.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTerminalReceptionSpecification's platingMaterials is not empty.
   */
  public S hasNoPlatingMaterials() {
    // check that actual VecTerminalReceptionSpecification we want to make assertions on is not null.
    isNotNull();

    // we override the default error message with a more explicit one
    String assertjErrorMessage = "\nExpecting :\n  <%s>\nnot to have platingMaterials but had :\n  <%s>";

    // check
    if (actual.getPlatingMaterials().iterator().hasNext()) {
      failWithMessage(assertjErrorMessage, actual, actual.getPlatingMaterials());
    }

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


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

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

    // null safe check
    String actualPrimaryLockingType = actual.getPrimaryLockingType();
    if (!Objects.areEqual(actualPrimaryLockingType, primaryLockingType)) {
      failWithMessage(assertjErrorMessage, actual, primaryLockingType, actualPrimaryLockingType);
    }

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

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

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

    // null safe check
    VecNumericalValue actualPullOutForce = actual.getPullOutForce();
    if (!Objects.areEqual(actualPullOutForce, pullOutForce)) {
      failWithMessage(assertjErrorMessage, actual, pullOutForce, actualPullOutForce);
    }

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

  /**
   * Verifies that the actual VecTerminalReceptionSpecification's refTerminalReception contains the given VecTerminalReception elements.
   * @param refTerminalReception the given elements that should be contained in actual VecTerminalReceptionSpecification's refTerminalReception.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTerminalReceptionSpecification's refTerminalReception does not contain all given VecTerminalReception elements.
   */
  public S hasRefTerminalReception(VecTerminalReception... refTerminalReception) {
    // check that actual VecTerminalReceptionSpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTerminalReception varargs is not null.
    if (refTerminalReception == null) failWithMessage("Expecting refTerminalReception parameter not to be null.");

    // check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
    Iterables.instance().assertContains(info, actual.getRefTerminalReception(), refTerminalReception);

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

  /**
   * Verifies that the actual VecTerminalReceptionSpecification's refTerminalReception contains the given VecTerminalReception elements in Collection.
   * @param refTerminalReception the given elements that should be contained in actual VecTerminalReceptionSpecification's refTerminalReception.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTerminalReceptionSpecification's refTerminalReception does not contain all given VecTerminalReception elements.
   */
  public S hasRefTerminalReception(java.util.Collection refTerminalReception) {
    // check that actual VecTerminalReceptionSpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTerminalReception collection is not null.
    if (refTerminalReception == null) {
      failWithMessage("Expecting refTerminalReception parameter not to be null.");
      return myself; // to fool Eclipse "Null pointer access" warning on toArray.
    }

    // check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
    Iterables.instance().assertContains(info, actual.getRefTerminalReception(), refTerminalReception.toArray());

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

  /**
   * Verifies that the actual VecTerminalReceptionSpecification's refTerminalReception contains only the given VecTerminalReception elements and nothing else in whatever order.
   * @param refTerminalReception the given elements that should be contained in actual VecTerminalReceptionSpecification's refTerminalReception.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTerminalReceptionSpecification's refTerminalReception does not contain all given VecTerminalReception elements.
   */
  public S hasOnlyRefTerminalReception(VecTerminalReception... refTerminalReception) {
    // check that actual VecTerminalReceptionSpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTerminalReception varargs is not null.
    if (refTerminalReception == null) failWithMessage("Expecting refTerminalReception parameter not to be null.");

    // check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
    Iterables.instance().assertContainsOnly(info, actual.getRefTerminalReception(), refTerminalReception);

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

  /**
   * Verifies that the actual VecTerminalReceptionSpecification's refTerminalReception contains only the given VecTerminalReception elements in Collection and nothing else in whatever order.
   * @param refTerminalReception the given elements that should be contained in actual VecTerminalReceptionSpecification's refTerminalReception.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTerminalReceptionSpecification's refTerminalReception does not contain all given VecTerminalReception elements.
   */
  public S hasOnlyRefTerminalReception(java.util.Collection refTerminalReception) {
    // check that actual VecTerminalReceptionSpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTerminalReception collection is not null.
    if (refTerminalReception == null) {
      failWithMessage("Expecting refTerminalReception parameter not to be null.");
      return myself; // to fool Eclipse "Null pointer access" warning on toArray.
    }

    // check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
    Iterables.instance().assertContainsOnly(info, actual.getRefTerminalReception(), refTerminalReception.toArray());

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

  /**
   * Verifies that the actual VecTerminalReceptionSpecification's refTerminalReception does not contain the given VecTerminalReception elements.
   *
   * @param refTerminalReception the given elements that should not be in actual VecTerminalReceptionSpecification's refTerminalReception.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTerminalReceptionSpecification's refTerminalReception contains any given VecTerminalReception elements.
   */
  public S doesNotHaveRefTerminalReception(VecTerminalReception... refTerminalReception) {
    // check that actual VecTerminalReceptionSpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTerminalReception varargs is not null.
    if (refTerminalReception == null) failWithMessage("Expecting refTerminalReception parameter not to be null.");

    // check with standard error message (use overridingErrorMessage before contains to set your own message).
    Iterables.instance().assertDoesNotContain(info, actual.getRefTerminalReception(), refTerminalReception);

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

  /**
   * Verifies that the actual VecTerminalReceptionSpecification's refTerminalReception does not contain the given VecTerminalReception elements in Collection.
   *
   * @param refTerminalReception the given elements that should not be in actual VecTerminalReceptionSpecification's refTerminalReception.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTerminalReceptionSpecification's refTerminalReception contains any given VecTerminalReception elements.
   */
  public S doesNotHaveRefTerminalReception(java.util.Collection refTerminalReception) {
    // check that actual VecTerminalReceptionSpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTerminalReception collection is not null.
    if (refTerminalReception == null) {
      failWithMessage("Expecting refTerminalReception parameter not to be null.");
      return myself; // to fool Eclipse "Null pointer access" warning on toArray.
    }

    // check with standard error message (use overridingErrorMessage before contains to set your own message).
    Iterables.instance().assertDoesNotContain(info, actual.getRefTerminalReception(), refTerminalReception.toArray());

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

  /**
   * Verifies that the actual VecTerminalReceptionSpecification has no refTerminalReception.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTerminalReceptionSpecification's refTerminalReception is not empty.
   */
  public S hasNoRefTerminalReception() {
    // check that actual VecTerminalReceptionSpecification we want to make assertions on is not null.
    isNotNull();

    // we override the default error message with a more explicit one
    String assertjErrorMessage = "\nExpecting :\n  <%s>\nnot to have refTerminalReception but had :\n  <%s>";

    // check
    if (actual.getRefTerminalReception().iterator().hasNext()) {
      failWithMessage(assertjErrorMessage, actual, actual.getRefTerminalReception());
    }

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


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

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

    // null safe check
    VecTerminalType actualTerminalType = actual.getTerminalType();
    if (!Objects.areEqual(actualTerminalType, terminalType)) {
      failWithMessage(assertjErrorMessage, actual, terminalType, actualTerminalType);
    }

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

}