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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

    // null safe check
    VecTerminalRole actualMountedTerminal = actual.getMountedTerminal();
    if (!Objects.areEqual(actualMountedTerminal, mountedTerminal)) {
      failWithMessage(assertjErrorMessage, actual, mountedTerminal, actualMountedTerminal);
    }

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

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

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

    // null safe check
    VecContactingSpecification actualParentContactingSpecification = actual.getParentContactingSpecification();
    if (!Objects.areEqual(actualParentContactingSpecification, parentContactingSpecification)) {
      failWithMessage(assertjErrorMessage, actual, parentContactingSpecification, actualParentContactingSpecification);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


}