
com.foursoft.vecmodel.vec120.AbstractVecRingTerminalSpecificationAssert 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 VecRingTerminalSpecification} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecRingTerminalSpecificationAssert, A extends VecRingTerminalSpecification> extends AbstractVecTerminalSpecificationAssert {
/**
* Creates a new {@link AbstractVecRingTerminalSpecificationAssert}
to make assertions on actual VecRingTerminalSpecification.
* @param actual the VecRingTerminalSpecification we want to make assertions on.
*/
protected AbstractVecRingTerminalSpecificationAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecRingTerminalSpecification's boltDiameter is equal to the given one.
* @param boltDiameter the given boltDiameter to compare the actual VecRingTerminalSpecification's boltDiameter to.
* @return this assertion object.
* @throws AssertionError - if the actual VecRingTerminalSpecification's boltDiameter is not equal to the given one.
*/
public S hasBoltDiameter(VecNumericalValue boltDiameter) {
// check that actual VecRingTerminalSpecification 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 VecRingTerminalSpecification's boltNominalSize is equal to the given one.
* @param boltNominalSize the given boltNominalSize to compare the actual VecRingTerminalSpecification's boltNominalSize to.
* @return this assertion object.
* @throws AssertionError - if the actual VecRingTerminalSpecification's boltNominalSize is not equal to the given one.
*/
public S hasBoltNominalSize(Object boltNominalSize) {
// check that actual VecRingTerminalSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting boltNominalSize of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
Object actualBoltNominalSize = actual.getBoltNominalSize();
if (!Objects.areEqual(actualBoltNominalSize, boltNominalSize)) {
failWithMessage(assertjErrorMessage, actual, boltNominalSize, actualBoltNominalSize);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecRingTerminalSpecification's boltType is equal to the given one.
* @param boltType the given boltType to compare the actual VecRingTerminalSpecification's boltType to.
* @return this assertion object.
* @throws AssertionError - if the actual VecRingTerminalSpecification's boltType is not equal to the given one.
*/
public S hasBoltType(String boltType) {
// check that actual VecRingTerminalSpecification 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;
}
/**
* Verifies that the actual VecRingTerminalSpecification's outsideDimension is equal to the given one.
* @param outsideDimension the given outsideDimension to compare the actual VecRingTerminalSpecification's outsideDimension to.
* @return this assertion object.
* @throws AssertionError - if the actual VecRingTerminalSpecification's outsideDimension is not equal to the given one.
*/
public S hasOutsideDimension(VecNumericalValue outsideDimension) {
// check that actual VecRingTerminalSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting outsideDimension of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualOutsideDimension = actual.getOutsideDimension();
if (!Objects.areEqual(actualOutsideDimension, outsideDimension)) {
failWithMessage(assertjErrorMessage, actual, outsideDimension, actualOutsideDimension);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecRingTerminalSpecification's thickness is equal to the given one.
* @param thickness the given thickness to compare the actual VecRingTerminalSpecification's thickness to.
* @return this assertion object.
* @throws AssertionError - if the actual VecRingTerminalSpecification's thickness is not equal to the given one.
*/
public S hasThickness(VecNumericalValue thickness) {
// check that actual VecRingTerminalSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting thickness of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualThickness = actual.getThickness();
if (!Objects.areEqual(actualThickness, thickness)) {
failWithMessage(assertjErrorMessage, actual, thickness, actualThickness);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecRingTerminalSpecification is torsion protection.
* @return this assertion object.
* @throws AssertionError - if the actual VecRingTerminalSpecification is not torsion protection.
*/
public S isTorsionProtection() {
// check that actual VecRingTerminalSpecification we want to make assertions on is not null.
isNotNull();
// null safe check
if (Objects.areEqual(Boolean.FALSE, actual.isTorsionProtection())) {
failWithMessage("\nExpecting that actual VecRingTerminalSpecification is torsion protection but is not.");
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecRingTerminalSpecification is not torsion protection.
* @return this assertion object.
* @throws AssertionError - if the actual VecRingTerminalSpecification is torsion protection.
*/
public S isNotTorsionProtection() {
// check that actual VecRingTerminalSpecification we want to make assertions on is not null.
isNotNull();
// null safe check
if (Objects.areEqual(Boolean.TRUE, actual.isTorsionProtection())) {
failWithMessage("\nExpecting that actual VecRingTerminalSpecification is not torsion protection but is.");
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy