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