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

com.foursoft.vecmodel.vec120.AbstractVecCavityPlugSpecificationAssert 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;

/**
 * Abstract base class for {@link VecCavityPlugSpecification} specific assertions - Generated by CustomAssertionGenerator.
 */
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecCavityPlugSpecificationAssert, A extends VecCavityPlugSpecification> extends AbstractVecCavityPartSpecificationAssert {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


}