
com.foursoft.vecmodel.vec120.AbstractVecBoltMountedFixingSpecificationAssert 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 VecBoltMountedFixingSpecification} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecBoltMountedFixingSpecificationAssert, A extends VecBoltMountedFixingSpecification> extends AbstractVecFixingSpecificationAssert {
/**
* Creates a new {@link AbstractVecBoltMountedFixingSpecificationAssert}
to make assertions on actual VecBoltMountedFixingSpecification.
* @param actual the VecBoltMountedFixingSpecification we want to make assertions on.
*/
protected AbstractVecBoltMountedFixingSpecificationAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecBoltMountedFixingSpecification's boltDiameter is equal to the given one.
* @param boltDiameter the given boltDiameter to compare the actual VecBoltMountedFixingSpecification's boltDiameter to.
* @return this assertion object.
* @throws AssertionError - if the actual VecBoltMountedFixingSpecification's boltDiameter is not equal to the given one.
*/
public S hasBoltDiameter(VecNumericalValue boltDiameter) {
// check that actual VecBoltMountedFixingSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting boltDiameter of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualBoltDiameter = actual.getBoltDiameter();
if (!Objects.areEqual(actualBoltDiameter, boltDiameter)) {
failWithMessage(assertjErrorMessage, actual, boltDiameter, actualBoltDiameter);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBoltMountedFixingSpecification's boltHeight is equal to the given one.
* @param boltHeight the given boltHeight to compare the actual VecBoltMountedFixingSpecification's boltHeight to.
* @return this assertion object.
* @throws AssertionError - if the actual VecBoltMountedFixingSpecification's boltHeight is not equal to the given one.
*/
public S hasBoltHeight(VecNumericalValue boltHeight) {
// check that actual VecBoltMountedFixingSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting boltHeight of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualBoltHeight = actual.getBoltHeight();
if (!Objects.areEqual(actualBoltHeight, boltHeight)) {
failWithMessage(assertjErrorMessage, actual, boltHeight, actualBoltHeight);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBoltMountedFixingSpecification's boltType is equal to the given one.
* @param boltType the given boltType to compare the actual VecBoltMountedFixingSpecification's boltType to.
* @return this assertion object.
* @throws AssertionError - if the actual VecBoltMountedFixingSpecification's boltType is not equal to the given one.
*/
public S hasBoltType(String boltType) {
// check that actual VecBoltMountedFixingSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting boltType of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualBoltType = actual.getBoltType();
if (!Objects.areEqual(actualBoltType, boltType)) {
failWithMessage(assertjErrorMessage, actual, boltType, actualBoltType);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy