
com.foursoft.vecmodel.vec120.AbstractVecCavityAddOnAssert 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 VecCavityAddOn} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecCavityAddOnAssert, A extends VecCavityAddOn> extends AbstractObjectAssert {
/**
* Creates a new {@link AbstractVecCavityAddOnAssert}
to make assertions on actual VecCavityAddOn.
* @param actual the VecCavityAddOn we want to make assertions on.
*/
protected AbstractVecCavityAddOnAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecCavityAddOn's cavity is equal to the given one.
* @param cavity the given cavity to compare the actual VecCavityAddOn's cavity to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCavityAddOn's cavity is not equal to the given one.
*/
public S hasCavity(VecCavity cavity) {
// check that actual VecCavityAddOn we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting cavity of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecCavity actualCavity = actual.getCavity();
if (!Objects.areEqual(actualCavity, cavity)) {
failWithMessage(assertjErrorMessage, actual, cavity, actualCavity);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCavityAddOn's parentSegmentConnectionPoint is equal to the given one.
* @param parentSegmentConnectionPoint the given parentSegmentConnectionPoint to compare the actual VecCavityAddOn's parentSegmentConnectionPoint to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCavityAddOn's parentSegmentConnectionPoint is not equal to the given one.
*/
public S hasParentSegmentConnectionPoint(VecSegmentConnectionPoint parentSegmentConnectionPoint) {
// check that actual VecCavityAddOn we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentSegmentConnectionPoint of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecSegmentConnectionPoint actualParentSegmentConnectionPoint = actual.getParentSegmentConnectionPoint();
if (!Objects.areEqual(actualParentSegmentConnectionPoint, parentSegmentConnectionPoint)) {
failWithMessage(assertjErrorMessage, actual, parentSegmentConnectionPoint, actualParentSegmentConnectionPoint);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCavityAddOn's type is equal to the given one.
* @param type the given type to compare the actual VecCavityAddOn's type to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCavityAddOn's type is not equal to the given one.
*/
public S hasType(String type) {
// check that actual VecCavityAddOn we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting type of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualType = actual.getType();
if (!Objects.areEqual(actualType, type)) {
failWithMessage(assertjErrorMessage, actual, type, actualType);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCavityAddOn's wireAddOn is equal to the given one.
* @param wireAddOn the given wireAddOn to compare the actual VecCavityAddOn's wireAddOn to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCavityAddOn's wireAddOn is not equal to the given one.
*/
public S hasWireAddOn(VecNumericalValue wireAddOn) {
// check that actual VecCavityAddOn we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting wireAddOn of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualWireAddOn = actual.getWireAddOn();
if (!Objects.areEqual(actualWireAddOn, wireAddOn)) {
failWithMessage(assertjErrorMessage, actual, wireAddOn, actualWireAddOn);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCavityAddOn's xmlId is equal to the given one.
* @param xmlId the given xmlId to compare the actual VecCavityAddOn's xmlId to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCavityAddOn's xmlId is not equal to the given one.
*/
public S hasXmlId(String xmlId) {
// check that actual VecCavityAddOn 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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy