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

com.foursoft.vecmodel.vec120.AbstractVecPlaceableElementRoleAssert 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;
import org.assertj.core.util.Objects;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


  /**
   * Verifies that the actual VecPlaceableElementRole's placeableElementSpecification is equal to the given one.
   * @param placeableElementSpecification the given placeableElementSpecification to compare the actual VecPlaceableElementRole's placeableElementSpecification to.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecPlaceableElementRole's placeableElementSpecification is not equal to the given one.
   */
  public S hasPlaceableElementSpecification(VecPlaceableElementSpecification placeableElementSpecification) {
    // check that actual VecPlaceableElementRole we want to make assertions on is not null.
    isNotNull();

    // overrides the default error message with a more explicit one
    String assertjErrorMessage = "\nExpecting placeableElementSpecification of:\n  <%s>\nto be:\n  <%s>\nbut was:\n  <%s>";

    // null safe check
    VecPlaceableElementSpecification actualPlaceableElementSpecification = actual.getPlaceableElementSpecification();
    if (!Objects.areEqual(actualPlaceableElementSpecification, placeableElementSpecification)) {
      failWithMessage(assertjErrorMessage, actual, placeableElementSpecification, actualPlaceableElementSpecification);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


}