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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


}