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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


}