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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


}