
com.foursoft.vecmodel.vec120.AbstractVecCavityMountingDetailAssert 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 VecCavityMountingDetail} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecCavityMountingDetailAssert, A extends VecCavityMountingDetail> extends AbstractVecExtendableElementAssert {
/**
* Creates a new {@link AbstractVecCavityMountingDetailAssert}
to make assertions on actual VecCavityMountingDetail.
* @param actual the VecCavityMountingDetail we want to make assertions on.
*/
protected AbstractVecCavityMountingDetailAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecCavityMountingDetail's equippedCavityRef is equal to the given one.
* @param equippedCavityRef the given equippedCavityRef to compare the actual VecCavityMountingDetail's equippedCavityRef to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCavityMountingDetail's equippedCavityRef is not equal to the given one.
*/
public S hasEquippedCavityRef(VecCavityReference equippedCavityRef) {
// check that actual VecCavityMountingDetail we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting equippedCavityRef of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecCavityReference actualEquippedCavityRef = actual.getEquippedCavityRef();
if (!Objects.areEqual(actualEquippedCavityRef, equippedCavityRef)) {
failWithMessage(assertjErrorMessage, actual, equippedCavityRef, actualEquippedCavityRef);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCavityMountingDetail's parentCavityMounting is equal to the given one.
* @param parentCavityMounting the given parentCavityMounting to compare the actual VecCavityMountingDetail's parentCavityMounting to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCavityMountingDetail's parentCavityMounting is not equal to the given one.
*/
public S hasParentCavityMounting(VecCavityMounting parentCavityMounting) {
// check that actual VecCavityMountingDetail we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentCavityMounting of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecCavityMounting actualParentCavityMounting = actual.getParentCavityMounting();
if (!Objects.areEqual(actualParentCavityMounting, parentCavityMounting)) {
failWithMessage(assertjErrorMessage, actual, parentCavityMounting, actualParentCavityMounting);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCavityMountingDetail's terminalReceptionReference is equal to the given one.
* @param terminalReceptionReference the given terminalReceptionReference to compare the actual VecCavityMountingDetail's terminalReceptionReference to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCavityMountingDetail's terminalReceptionReference is not equal to the given one.
*/
public S hasTerminalReceptionReference(VecTerminalReceptionReference terminalReceptionReference) {
// check that actual VecCavityMountingDetail we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting terminalReceptionReference of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecTerminalReceptionReference actualTerminalReceptionReference = actual.getTerminalReceptionReference();
if (!Objects.areEqual(actualTerminalReceptionReference, terminalReceptionReference)) {
failWithMessage(assertjErrorMessage, actual, terminalReceptionReference, actualTerminalReceptionReference);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy