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

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

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

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

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

    // null safe check
    String actualIdentification = actual.getIdentification();
    if (!Objects.areEqual(actualIdentification, identification)) {
      failWithMessage(assertjErrorMessage, actual, identification, actualIdentification);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

    // null safe check
    VecPlacementSpecification actualParentPlacementSpecification = actual.getParentPlacementSpecification();
    if (!Objects.areEqual(actualParentPlacementSpecification, parentPlacementSpecification)) {
      failWithMessage(assertjErrorMessage, actual, parentPlacementSpecification, actualParentPlacementSpecification);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


  /**
   * Verifies that the actual VecPlacement's refPlacement contains the given VecPlacement elements.
   * @param refPlacement the given elements that should be contained in actual VecPlacement's refPlacement.
   * @return this assertion object.
   * @throws AssertionError if the actual VecPlacement's refPlacement does not contain all given VecPlacement elements.
   */
  public S hasRefPlacement(VecPlacement... refPlacement) {
    // check that actual VecPlacement 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 VecPlacement's refPlacement contains the given VecPlacement elements in Collection.
   * @param refPlacement the given elements that should be contained in actual VecPlacement's refPlacement.
   * @return this assertion object.
   * @throws AssertionError if the actual VecPlacement's refPlacement does not contain all given VecPlacement elements.
   */
  public S hasRefPlacement(java.util.Collection refPlacement) {
    // check that actual VecPlacement 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 VecPlacement'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 VecPlacement's refPlacement.
   * @return this assertion object.
   * @throws AssertionError if the actual VecPlacement's refPlacement does not contain all given VecPlacement elements.
   */
  public S hasOnlyRefPlacement(VecPlacement... refPlacement) {
    // check that actual VecPlacement 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 VecPlacement'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 VecPlacement's refPlacement.
   * @return this assertion object.
   * @throws AssertionError if the actual VecPlacement's refPlacement does not contain all given VecPlacement elements.
   */
  public S hasOnlyRefPlacement(java.util.Collection refPlacement) {
    // check that actual VecPlacement 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 VecPlacement's refPlacement does not contain the given VecPlacement elements.
   *
   * @param refPlacement the given elements that should not be in actual VecPlacement's refPlacement.
   * @return this assertion object.
   * @throws AssertionError if the actual VecPlacement's refPlacement contains any given VecPlacement elements.
   */
  public S doesNotHaveRefPlacement(VecPlacement... refPlacement) {
    // check that actual VecPlacement 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 VecPlacement's refPlacement does not contain the given VecPlacement elements in Collection.
   *
   * @param refPlacement the given elements that should not be in actual VecPlacement's refPlacement.
   * @return this assertion object.
   * @throws AssertionError if the actual VecPlacement's refPlacement contains any given VecPlacement elements.
   */
  public S doesNotHaveRefPlacement(java.util.Collection refPlacement) {
    // check that actual VecPlacement 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 VecPlacement has no refPlacement.
   * @return this assertion object.
   * @throws AssertionError if the actual VecPlacement's refPlacement is not empty.
   */
  public S hasNoRefPlacement() {
    // check that actual VecPlacement 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;
  }


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

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

    // null safe check
    String actualType = actual.getType();
    if (!Objects.areEqual(actualType, type)) {
      failWithMessage(assertjErrorMessage, actual, type, actualType);
    }

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

}