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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


  /**
   * Verifies that the actual VecWireReception's identification is equal to the given one.
   * @param identification the given identification to compare the actual VecWireReception's identification to.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecWireReception's identification is not equal to the given one.
   */
  public S hasIdentification(String identification) {
    // check that actual VecWireReception 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 VecWireReception's parentTerminalSpecification is equal to the given one.
   * @param parentTerminalSpecification the given parentTerminalSpecification to compare the actual VecWireReception's parentTerminalSpecification to.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecWireReception's parentTerminalSpecification is not equal to the given one.
   */
  public S hasParentTerminalSpecification(VecTerminalSpecification parentTerminalSpecification) {
    // check that actual VecWireReception we want to make assertions on is not null.
    isNotNull();

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

    // null safe check
    VecTerminalSpecification actualParentTerminalSpecification = actual.getParentTerminalSpecification();
    if (!Objects.areEqual(actualParentTerminalSpecification, parentTerminalSpecification)) {
      failWithMessage(assertjErrorMessage, actual, parentTerminalSpecification, actualParentTerminalSpecification);
    }

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

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

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

    // null safe check
    VecPlacementPoint actualPlacementPoint = actual.getPlacementPoint();
    if (!Objects.areEqual(actualPlacementPoint, placementPoint)) {
      failWithMessage(assertjErrorMessage, actual, placementPoint, actualPlacementPoint);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

    // null safe check
    VecWireReceptionSpecification actualWireReceptionSpecification = actual.getWireReceptionSpecification();
    if (!Objects.areEqual(actualWireReceptionSpecification, wireReceptionSpecification)) {
      failWithMessage(assertjErrorMessage, actual, wireReceptionSpecification, actualWireReceptionSpecification);
    }

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

}