
com.foursoft.vecmodel.vec120.AbstractVecBoundingBoxAssert 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.api.AbstractObjectAssert;
import org.assertj.core.util.Objects;
/**
* Abstract base class for {@link VecBoundingBox} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecBoundingBoxAssert, A extends VecBoundingBox> extends AbstractObjectAssert {
/**
* Creates a new {@link AbstractVecBoundingBoxAssert}
to make assertions on actual VecBoundingBox.
* @param actual the VecBoundingBox we want to make assertions on.
*/
protected AbstractVecBoundingBoxAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecBoundingBox's parentGeneralTechnicalPartSpecification is equal to the given one.
* @param parentGeneralTechnicalPartSpecification the given parentGeneralTechnicalPartSpecification to compare the actual VecBoundingBox's parentGeneralTechnicalPartSpecification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecBoundingBox's parentGeneralTechnicalPartSpecification is not equal to the given one.
*/
public S hasParentGeneralTechnicalPartSpecification(VecGeneralTechnicalPartSpecification parentGeneralTechnicalPartSpecification) {
// check that actual VecBoundingBox we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentGeneralTechnicalPartSpecification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecGeneralTechnicalPartSpecification actualParentGeneralTechnicalPartSpecification = actual.getParentGeneralTechnicalPartSpecification();
if (!Objects.areEqual(actualParentGeneralTechnicalPartSpecification, parentGeneralTechnicalPartSpecification)) {
failWithMessage(assertjErrorMessage, actual, parentGeneralTechnicalPartSpecification, actualParentGeneralTechnicalPartSpecification);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBoundingBox's x is equal to the given one.
* @param x the given x to compare the actual VecBoundingBox's x to.
* @return this assertion object.
* @throws AssertionError - if the actual VecBoundingBox's x is not equal to the given one.
*/
public S hasX(VecNumericalValue x) {
// check that actual VecBoundingBox we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting x of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualX = actual.getX();
if (!Objects.areEqual(actualX, x)) {
failWithMessage(assertjErrorMessage, actual, x, actualX);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBoundingBox's xmlId is equal to the given one.
* @param xmlId the given xmlId to compare the actual VecBoundingBox's xmlId to.
* @return this assertion object.
* @throws AssertionError - if the actual VecBoundingBox's xmlId is not equal to the given one.
*/
public S hasXmlId(String xmlId) {
// check that actual VecBoundingBox we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting xmlId of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualXmlId = actual.getXmlId();
if (!Objects.areEqual(actualXmlId, xmlId)) {
failWithMessage(assertjErrorMessage, actual, xmlId, actualXmlId);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBoundingBox's y is equal to the given one.
* @param y the given y to compare the actual VecBoundingBox's y to.
* @return this assertion object.
* @throws AssertionError - if the actual VecBoundingBox's y is not equal to the given one.
*/
public S hasY(VecNumericalValue y) {
// check that actual VecBoundingBox we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting y of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualY = actual.getY();
if (!Objects.areEqual(actualY, y)) {
failWithMessage(assertjErrorMessage, actual, y, actualY);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBoundingBox's z is equal to the given one.
* @param z the given z to compare the actual VecBoundingBox's z to.
* @return this assertion object.
* @throws AssertionError - if the actual VecBoundingBox's z is not equal to the given one.
*/
public S hasZ(VecNumericalValue z) {
// check that actual VecBoundingBox we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting z of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualZ = actual.getZ();
if (!Objects.areEqual(actualZ, z)) {
failWithMessage(assertjErrorMessage, actual, z, actualZ);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy