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

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

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

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

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

    // null safe check
    VecCavityPlugSpecification actualCavityPlugSpecification = actual.getCavityPlugSpecification();
    if (!Objects.areEqual(actualCavityPlugSpecification, cavityPlugSpecification)) {
      failWithMessage(assertjErrorMessage, actual, cavityPlugSpecification, actualCavityPlugSpecification);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


}