
com.foursoft.vecmodel.vec120.AbstractVecFittingOutletAssert 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 VecFittingOutlet} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecFittingOutletAssert, A extends VecFittingOutlet> extends AbstractVecExtendableElementAssert {
/**
* Creates a new {@link AbstractVecFittingOutletAssert}
to make assertions on actual VecFittingOutlet.
* @param actual the VecFittingOutlet we want to make assertions on.
*/
protected AbstractVecFittingOutletAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecFittingOutlet's identification is equal to the given one.
* @param identification the given identification to compare the actual VecFittingOutlet's identification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecFittingOutlet's identification is not equal to the given one.
*/
public S hasIdentification(String identification) {
// check that actual VecFittingOutlet 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 VecFittingOutlet's innerDiameter is equal to the given one.
* @param innerDiameter the given innerDiameter to compare the actual VecFittingOutlet's innerDiameter to.
* @return this assertion object.
* @throws AssertionError - if the actual VecFittingOutlet's innerDiameter is not equal to the given one.
*/
public S hasInnerDiameter(VecNumericalValue innerDiameter) {
// check that actual VecFittingOutlet we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting innerDiameter of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualInnerDiameter = actual.getInnerDiameter();
if (!Objects.areEqual(actualInnerDiameter, innerDiameter)) {
failWithMessage(assertjErrorMessage, actual, innerDiameter, actualInnerDiameter);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecFittingOutlet's nominalSize is equal to the given one.
* @param nominalSize the given nominalSize to compare the actual VecFittingOutlet's nominalSize to.
* @return this assertion object.
* @throws AssertionError - if the actual VecFittingOutlet's nominalSize is not equal to the given one.
*/
public S hasNominalSize(String nominalSize) {
// check that actual VecFittingOutlet we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting nominalSize of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualNominalSize = actual.getNominalSize();
if (!Objects.areEqual(actualNominalSize, nominalSize)) {
failWithMessage(assertjErrorMessage, actual, nominalSize, actualNominalSize);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecFittingOutlet's outerDiameter is equal to the given one.
* @param outerDiameter the given outerDiameter to compare the actual VecFittingOutlet's outerDiameter to.
* @return this assertion object.
* @throws AssertionError - if the actual VecFittingOutlet's outerDiameter is not equal to the given one.
*/
public S hasOuterDiameter(VecNumericalValue outerDiameter) {
// check that actual VecFittingOutlet we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting outerDiameter of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualOuterDiameter = actual.getOuterDiameter();
if (!Objects.areEqual(actualOuterDiameter, outerDiameter)) {
failWithMessage(assertjErrorMessage, actual, outerDiameter, actualOuterDiameter);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecFittingOutlet's parentFittingSpecification is equal to the given one.
* @param parentFittingSpecification the given parentFittingSpecification to compare the actual VecFittingOutlet's parentFittingSpecification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecFittingOutlet's parentFittingSpecification is not equal to the given one.
*/
public S hasParentFittingSpecification(VecFittingSpecification parentFittingSpecification) {
// check that actual VecFittingOutlet we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentFittingSpecification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecFittingSpecification actualParentFittingSpecification = actual.getParentFittingSpecification();
if (!Objects.areEqual(actualParentFittingSpecification, parentFittingSpecification)) {
failWithMessage(assertjErrorMessage, actual, parentFittingSpecification, actualParentFittingSpecification);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecFittingOutlet's placementPoint is equal to the given one.
* @param placementPoint the given placementPoint to compare the actual VecFittingOutlet's placementPoint to.
* @return this assertion object.
* @throws AssertionError - if the actual VecFittingOutlet's placementPoint is not equal to the given one.
*/
public S hasPlacementPoint(VecPlacementPoint placementPoint) {
// check that actual VecFittingOutlet 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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy