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

com.foursoft.vecmodel.vec120.AbstractVecTerminalReceptionReferenceAssert 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.internal.Iterables;
import org.assertj.core.util.Objects;

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

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

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

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

    // null safe check
    String actualIdentification = actual.getIdentification();
    if (!Objects.areEqual(actualIdentification, identification)) {
      failWithMessage(assertjErrorMessage, actual, identification, actualIdentification);
    }

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

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

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

    // null safe check
    VecTerminalRole actualParentTerminalRole = actual.getParentTerminalRole();
    if (!Objects.areEqual(actualParentTerminalRole, parentTerminalRole)) {
      failWithMessage(assertjErrorMessage, actual, parentTerminalRole, actualParentTerminalRole);
    }

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

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

    // check that given VecCavityMountingDetail varargs is not null.
    if (refCavityMountingDetail == null) failWithMessage("Expecting refCavityMountingDetail 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.getRefCavityMountingDetail(), refCavityMountingDetail);

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

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

    // check that given VecCavityMountingDetail collection is not null.
    if (refCavityMountingDetail == null) {
      failWithMessage("Expecting refCavityMountingDetail 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.getRefCavityMountingDetail(), refCavityMountingDetail.toArray());

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

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

    // check that given VecCavityMountingDetail varargs is not null.
    if (refCavityMountingDetail == null) failWithMessage("Expecting refCavityMountingDetail 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.getRefCavityMountingDetail(), refCavityMountingDetail);

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

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

    // check that given VecCavityMountingDetail collection is not null.
    if (refCavityMountingDetail == null) {
      failWithMessage("Expecting refCavityMountingDetail 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.getRefCavityMountingDetail(), refCavityMountingDetail.toArray());

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

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

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

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

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

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

    // check that given VecCavityMountingDetail collection is not null.
    if (refCavityMountingDetail == null) {
      failWithMessage("Expecting refCavityMountingDetail 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.getRefCavityMountingDetail(), refCavityMountingDetail.toArray());

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

  /**
   * Verifies that the actual VecTerminalReceptionReference has no refCavityMountingDetail.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTerminalReceptionReference's refCavityMountingDetail is not empty.
   */
  public S hasNoRefCavityMountingDetail() {
    // check that actual VecTerminalReceptionReference 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 refCavityMountingDetail but had :\n  <%s>";

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

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


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

    // check that given VecMatingDetail varargs is not null.
    if (refMatingDetail == null) failWithMessage("Expecting refMatingDetail 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.getRefMatingDetail(), refMatingDetail);

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

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

    // check that given VecMatingDetail collection is not null.
    if (refMatingDetail == null) {
      failWithMessage("Expecting refMatingDetail 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.getRefMatingDetail(), refMatingDetail.toArray());

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

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

    // check that given VecMatingDetail varargs is not null.
    if (refMatingDetail == null) failWithMessage("Expecting refMatingDetail 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.getRefMatingDetail(), refMatingDetail);

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

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

    // check that given VecMatingDetail collection is not null.
    if (refMatingDetail == null) {
      failWithMessage("Expecting refMatingDetail 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.getRefMatingDetail(), refMatingDetail.toArray());

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

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

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

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

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

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

    // check that given VecMatingDetail collection is not null.
    if (refMatingDetail == null) {
      failWithMessage("Expecting refMatingDetail 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.getRefMatingDetail(), refMatingDetail.toArray());

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

  /**
   * Verifies that the actual VecTerminalReceptionReference has no refMatingDetail.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTerminalReceptionReference's refMatingDetail is not empty.
   */
  public S hasNoRefMatingDetail() {
    // check that actual VecTerminalReceptionReference 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 refMatingDetail but had :\n  <%s>";

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

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


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

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

    // null safe check
    VecTerminalReception actualTerminalReception = actual.getTerminalReception();
    if (!Objects.areEqual(actualTerminalReception, terminalReception)) {
      failWithMessage(assertjErrorMessage, actual, terminalReception, actualTerminalReception);
    }

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

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

}