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

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

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

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

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

    // null safe check
    VecCavitySealSpecification actualCavitySealSpecification = actual.getCavitySealSpecification();
    if (!Objects.areEqual(actualCavitySealSpecification, cavitySealSpecification)) {
      failWithMessage(assertjErrorMessage, actual, cavitySealSpecification, actualCavitySealSpecification);
    }

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

  /**
   * Verifies that the actual VecCavitySealRole's refCableLeadThroughReference contains the given VecCableLeadThroughReference elements.
   * @param refCableLeadThroughReference the given elements that should be contained in actual VecCavitySealRole's refCableLeadThroughReference.
   * @return this assertion object.
   * @throws AssertionError if the actual VecCavitySealRole's refCableLeadThroughReference does not contain all given VecCableLeadThroughReference elements.
   */
  public S hasRefCableLeadThroughReference(VecCableLeadThroughReference... refCableLeadThroughReference) {
    // check that actual VecCavitySealRole 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 VecCavitySealRole's refCableLeadThroughReference contains the given VecCableLeadThroughReference elements in Collection.
   * @param refCableLeadThroughReference the given elements that should be contained in actual VecCavitySealRole's refCableLeadThroughReference.
   * @return this assertion object.
   * @throws AssertionError if the actual VecCavitySealRole's refCableLeadThroughReference does not contain all given VecCableLeadThroughReference elements.
   */
  public S hasRefCableLeadThroughReference(java.util.Collection refCableLeadThroughReference) {
    // check that actual VecCavitySealRole 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 VecCavitySealRole'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 VecCavitySealRole's refCableLeadThroughReference.
   * @return this assertion object.
   * @throws AssertionError if the actual VecCavitySealRole's refCableLeadThroughReference does not contain all given VecCableLeadThroughReference elements.
   */
  public S hasOnlyRefCableLeadThroughReference(VecCableLeadThroughReference... refCableLeadThroughReference) {
    // check that actual VecCavitySealRole 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 VecCavitySealRole'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 VecCavitySealRole's refCableLeadThroughReference.
   * @return this assertion object.
   * @throws AssertionError if the actual VecCavitySealRole's refCableLeadThroughReference does not contain all given VecCableLeadThroughReference elements.
   */
  public S hasOnlyRefCableLeadThroughReference(java.util.Collection refCableLeadThroughReference) {
    // check that actual VecCavitySealRole 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 VecCavitySealRole's refCableLeadThroughReference does not contain the given VecCableLeadThroughReference elements.
   *
   * @param refCableLeadThroughReference the given elements that should not be in actual VecCavitySealRole's refCableLeadThroughReference.
   * @return this assertion object.
   * @throws AssertionError if the actual VecCavitySealRole's refCableLeadThroughReference contains any given VecCableLeadThroughReference elements.
   */
  public S doesNotHaveRefCableLeadThroughReference(VecCableLeadThroughReference... refCableLeadThroughReference) {
    // check that actual VecCavitySealRole 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 VecCavitySealRole's refCableLeadThroughReference does not contain the given VecCableLeadThroughReference elements in Collection.
   *
   * @param refCableLeadThroughReference the given elements that should not be in actual VecCavitySealRole's refCableLeadThroughReference.
   * @return this assertion object.
   * @throws AssertionError if the actual VecCavitySealRole's refCableLeadThroughReference contains any given VecCableLeadThroughReference elements.
   */
  public S doesNotHaveRefCableLeadThroughReference(java.util.Collection refCableLeadThroughReference) {
    // check that actual VecCavitySealRole 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 VecCavitySealRole has no refCableLeadThroughReference.
   * @return this assertion object.
   * @throws AssertionError if the actual VecCavitySealRole's refCableLeadThroughReference is not empty.
   */
  public S hasNoRefCableLeadThroughReference() {
    // check that actual VecCavitySealRole 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 VecCavitySealRole's refWireMounting contains the given VecWireMounting elements.
   * @param refWireMounting the given elements that should be contained in actual VecCavitySealRole's refWireMounting.
   * @return this assertion object.
   * @throws AssertionError if the actual VecCavitySealRole's refWireMounting does not contain all given VecWireMounting elements.
   */
  public S hasRefWireMounting(VecWireMounting... refWireMounting) {
    // check that actual VecCavitySealRole we want to make assertions on is not null.
    isNotNull();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


}