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

com.foursoft.vecmodel.vec120.AbstractVecBuildingBlockPositioning3DAssert Maven / Gradle / Ivy

There is a newer version: 1.5.2
Show newest version
package com.foursoft.vecmodel.vec120;

import org.assertj.core.util.Objects;

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

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

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

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

    // null safe check
    VecHarnessGeometrySpecification3D actualParentHarnessGeometrySpecification3D = actual.getParentHarnessGeometrySpecification3D();
    if (!Objects.areEqual(actualParentHarnessGeometrySpecification3D, parentHarnessGeometrySpecification3D)) {
      failWithMessage(assertjErrorMessage, actual, parentHarnessGeometrySpecification3D, actualParentHarnessGeometrySpecification3D);
    }

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

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

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

    // null safe check
    VecTransformation3D actualPositioning = actual.getPositioning();
    if (!Objects.areEqual(actualPositioning, positioning)) {
      failWithMessage(assertjErrorMessage, actual, positioning, actualPositioning);
    }

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

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

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

    // null safe check
    VecBuildingBlockSpecification3D actualReferenced3DBuildingBlock = actual.getReferenced3DBuildingBlock();
    if (!Objects.areEqual(actualReferenced3DBuildingBlock, referenced3DBuildingBlock)) {
      failWithMessage(assertjErrorMessage, actual, referenced3DBuildingBlock, actualReferenced3DBuildingBlock);
    }

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

}