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

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

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

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

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

    // null safe check
    VecCartesianPoint3D actualCartesianPoint = actual.getCartesianPoint();
    if (!Objects.areEqual(actualCartesianPoint, cartesianPoint)) {
      failWithMessage(assertjErrorMessage, actual, cartesianPoint, actualCartesianPoint);
    }

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

  /**
   * Verifies that the actual VecGeometryNode3D's parentBuildingBlockSpecification3D is equal to the given one.
   * @param parentBuildingBlockSpecification3D the given parentBuildingBlockSpecification3D to compare the actual VecGeometryNode3D's parentBuildingBlockSpecification3D to.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecGeometryNode3D's parentBuildingBlockSpecification3D is not equal to the given one.
   */
  public S hasParentBuildingBlockSpecification3D(VecBuildingBlockSpecification3D parentBuildingBlockSpecification3D) {
    // check that actual VecGeometryNode3D 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;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


}