
com.foursoft.vecmodel.vec120.AbstractVecPlacementPointPositionAssert 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 VecPlacementPointPosition} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecPlacementPointPositionAssert, A extends VecPlacementPointPosition> extends AbstractVecLocalPositionAssert {
/**
* Creates a new {@link AbstractVecPlacementPointPositionAssert}
to make assertions on actual VecPlacementPointPosition.
* @param actual the VecPlacementPointPosition we want to make assertions on.
*/
protected AbstractVecPlacementPointPositionAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecPlacementPointPosition's placementPoint is equal to the given one.
* @param placementPoint the given placementPoint to compare the actual VecPlacementPointPosition's placementPoint to.
* @return this assertion object.
* @throws AssertionError - if the actual VecPlacementPointPosition's placementPoint is not equal to the given one.
*/
public S hasPlacementPoint(VecPlacementPoint placementPoint) {
// check that actual VecPlacementPointPosition we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting placementPoint of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecPlacementPoint actualPlacementPoint = actual.getPlacementPoint();
if (!Objects.areEqual(actualPlacementPoint, placementPoint)) {
failWithMessage(assertjErrorMessage, actual, placementPoint, actualPlacementPoint);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPlacementPointPosition's tangent is equal to the given one.
* @param tangent the given tangent to compare the actual VecPlacementPointPosition's tangent to.
* @return this assertion object.
* @throws AssertionError - if the actual VecPlacementPointPosition's tangent is not equal to the given one.
*/
public S hasTangent(VecCartesianVector3D tangent) {
// check that actual VecPlacementPointPosition we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting tangent of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecCartesianVector3D actualTangent = actual.getTangent();
if (!Objects.areEqual(actualTangent, tangent)) {
failWithMessage(assertjErrorMessage, actual, tangent, actualTangent);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy