
com.foursoft.vecmodel.vec120.AbstractVecBuildingBlockPositioning2DAssert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vec120-assertions Show documentation
Show all versions of vec120-assertions Show documentation
The Assertions Library for VEC version 1.2.0.
package com.foursoft.vecmodel.vec120;
import org.assertj.core.util.Objects;
/**
* Abstract base class for {@link VecBuildingBlockPositioning2D} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecBuildingBlockPositioning2DAssert, A extends VecBuildingBlockPositioning2D> extends AbstractVecConfigurableElementAssert {
/**
* Creates a new {@link AbstractVecBuildingBlockPositioning2DAssert}
to make assertions on actual VecBuildingBlockPositioning2D.
* @param actual the VecBuildingBlockPositioning2D we want to make assertions on.
*/
protected AbstractVecBuildingBlockPositioning2DAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecBuildingBlockPositioning2D's centerPoint is equal to the given one.
* @param centerPoint the given centerPoint to compare the actual VecBuildingBlockPositioning2D's centerPoint to.
* @return this assertion object.
* @throws AssertionError - if the actual VecBuildingBlockPositioning2D's centerPoint is not equal to the given one.
*/
public S hasCenterPoint(VecCartesianPoint2D centerPoint) {
// check that actual VecBuildingBlockPositioning2D we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting centerPoint of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecCartesianPoint2D actualCenterPoint = actual.getCenterPoint();
if (!Objects.areEqual(actualCenterPoint, centerPoint)) {
failWithMessage(assertjErrorMessage, actual, centerPoint, actualCenterPoint);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockPositioning2D's parentHarnessDrawingSpecification2D is equal to the given one.
* @param parentHarnessDrawingSpecification2D the given parentHarnessDrawingSpecification2D to compare the actual VecBuildingBlockPositioning2D's parentHarnessDrawingSpecification2D to.
* @return this assertion object.
* @throws AssertionError - if the actual VecBuildingBlockPositioning2D's parentHarnessDrawingSpecification2D is not equal to the given one.
*/
public S hasParentHarnessDrawingSpecification2D(VecHarnessDrawingSpecification2D parentHarnessDrawingSpecification2D) {
// check that actual VecBuildingBlockPositioning2D we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentHarnessDrawingSpecification2D of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecHarnessDrawingSpecification2D actualParentHarnessDrawingSpecification2D = actual.getParentHarnessDrawingSpecification2D();
if (!Objects.areEqual(actualParentHarnessDrawingSpecification2D, parentHarnessDrawingSpecification2D)) {
failWithMessage(assertjErrorMessage, actual, parentHarnessDrawingSpecification2D, actualParentHarnessDrawingSpecification2D);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockPositioning2D's referenced2DBuildingBlock is equal to the given one.
* @param referenced2DBuildingBlock the given referenced2DBuildingBlock to compare the actual VecBuildingBlockPositioning2D's referenced2DBuildingBlock to.
* @return this assertion object.
* @throws AssertionError - if the actual VecBuildingBlockPositioning2D's referenced2DBuildingBlock is not equal to the given one.
*/
public S hasReferenced2DBuildingBlock(VecBuildingBlockSpecification2D referenced2DBuildingBlock) {
// check that actual VecBuildingBlockPositioning2D we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting referenced2DBuildingBlock of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecBuildingBlockSpecification2D actualReferenced2DBuildingBlock = actual.getReferenced2DBuildingBlock();
if (!Objects.areEqual(actualReferenced2DBuildingBlock, referenced2DBuildingBlock)) {
failWithMessage(assertjErrorMessage, actual, referenced2DBuildingBlock, actualReferenced2DBuildingBlock);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy