
com.foursoft.vecmodel.vec120.AbstractVecCavityCouplingAssert 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 VecCavityCoupling} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecCavityCouplingAssert, A extends VecCavityCoupling> extends AbstractVecConfigurableElementAssert {
/**
* Creates a new {@link AbstractVecCavityCouplingAssert}
to make assertions on actual VecCavityCoupling.
* @param actual the VecCavityCoupling we want to make assertions on.
*/
protected AbstractVecCavityCouplingAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecCavityCoupling's firstCavity is equal to the given one.
* @param firstCavity the given firstCavity to compare the actual VecCavityCoupling's firstCavity to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCavityCoupling's firstCavity is not equal to the given one.
*/
public S hasFirstCavity(VecCavityReference firstCavity) {
// check that actual VecCavityCoupling we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting firstCavity of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecCavityReference actualFirstCavity = actual.getFirstCavity();
if (!Objects.areEqual(actualFirstCavity, firstCavity)) {
failWithMessage(assertjErrorMessage, actual, firstCavity, actualFirstCavity);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCavityCoupling's identification is equal to the given one.
* @param identification the given identification to compare the actual VecCavityCoupling's identification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCavityCoupling's identification is not equal to the given one.
*/
public S hasIdentification(String identification) {
// check that actual VecCavityCoupling 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 VecCavityCoupling's parentSlotCoupling is equal to the given one.
* @param parentSlotCoupling the given parentSlotCoupling to compare the actual VecCavityCoupling's parentSlotCoupling to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCavityCoupling's parentSlotCoupling is not equal to the given one.
*/
public S hasParentSlotCoupling(VecSlotCoupling parentSlotCoupling) {
// check that actual VecCavityCoupling we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentSlotCoupling of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecSlotCoupling actualParentSlotCoupling = actual.getParentSlotCoupling();
if (!Objects.areEqual(actualParentSlotCoupling, parentSlotCoupling)) {
failWithMessage(assertjErrorMessage, actual, parentSlotCoupling, actualParentSlotCoupling);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCavityCoupling's secondCavity is equal to the given one.
* @param secondCavity the given secondCavity to compare the actual VecCavityCoupling's secondCavity to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCavityCoupling's secondCavity is not equal to the given one.
*/
public S hasSecondCavity(VecCavityReference secondCavity) {
// check that actual VecCavityCoupling we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting secondCavity of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecCavityReference actualSecondCavity = actual.getSecondCavity();
if (!Objects.areEqual(actualSecondCavity, secondCavity)) {
failWithMessage(assertjErrorMessage, actual, secondCavity, actualSecondCavity);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy