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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

    // null safe check
    VecContactPoint actualParentContactPoint = actual.getParentContactPoint();
    if (!Objects.areEqual(actualParentContactPoint, parentContactPoint)) {
      failWithMessage(assertjErrorMessage, actual, parentContactPoint, actualParentContactPoint);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


}