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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


  /**
   * Verifies that the actual VecOccurrenceOrUsageViewItem3D's identification is equal to the given one.
   * @param identification the given identification to compare the actual VecOccurrenceOrUsageViewItem3D's identification to.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecOccurrenceOrUsageViewItem3D's identification is not equal to the given one.
   */
  public S hasIdentification(String identification) {
    // check that actual VecOccurrenceOrUsageViewItem3D 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 VecOccurrenceOrUsageViewItem3D's occurrenceOrUsage contains the given VecOccurrenceOrUsage elements.
   * @param occurrenceOrUsage the given elements that should be contained in actual VecOccurrenceOrUsageViewItem3D's occurrenceOrUsage.
   * @return this assertion object.
   * @throws AssertionError if the actual VecOccurrenceOrUsageViewItem3D's occurrenceOrUsage does not contain all given VecOccurrenceOrUsage elements.
   */
  public S hasOccurrenceOrUsage(VecOccurrenceOrUsage... occurrenceOrUsage) {
    // check that actual VecOccurrenceOrUsageViewItem3D we want to make assertions on is not null.
    isNotNull();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

    // null safe check
    VecTransformation3D actualOrientation = actual.getOrientation();
    if (!Objects.areEqual(actualOrientation, orientation)) {
      failWithMessage(assertjErrorMessage, actual, orientation, actualOrientation);
    }

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

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

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

    // null safe check
    VecBuildingBlockSpecification3D actualParentBuildingBlockSpecification3D = actual.getParentBuildingBlockSpecification3D();
    if (!Objects.areEqual(actualParentBuildingBlockSpecification3D, parentBuildingBlockSpecification3D)) {
      failWithMessage(assertjErrorMessage, actual, parentBuildingBlockSpecification3D, actualParentBuildingBlockSpecification3D);
    }

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

}