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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


}