
com.foursoft.vecmodel.vec120.AbstractVecSegmentCrossSectionAreaAssert 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 VecSegmentCrossSectionArea} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecSegmentCrossSectionAreaAssert, A extends VecSegmentCrossSectionArea> extends AbstractVecExtendableElementAssert {
/**
* Creates a new {@link AbstractVecSegmentCrossSectionAreaAssert}
to make assertions on actual VecSegmentCrossSectionArea.
* @param actual the VecSegmentCrossSectionArea we want to make assertions on.
*/
protected AbstractVecSegmentCrossSectionAreaAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecSegmentCrossSectionArea's area is equal to the given one.
* @param area the given area to compare the actual VecSegmentCrossSectionArea's area to.
* @return this assertion object.
* @throws AssertionError - if the actual VecSegmentCrossSectionArea's area is not equal to the given one.
*/
public S hasArea(VecNumericalValue area) {
// check that actual VecSegmentCrossSectionArea we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting area of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualArea = actual.getArea();
if (!Objects.areEqual(actualArea, area)) {
failWithMessage(assertjErrorMessage, actual, area, actualArea);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentCrossSectionArea's crossSectionAreaType is equal to the given one.
* @param crossSectionAreaType the given crossSectionAreaType to compare the actual VecSegmentCrossSectionArea's crossSectionAreaType to.
* @return this assertion object.
* @throws AssertionError - if the actual VecSegmentCrossSectionArea's crossSectionAreaType is not equal to the given one.
*/
public S hasCrossSectionAreaType(String crossSectionAreaType) {
// check that actual VecSegmentCrossSectionArea we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting crossSectionAreaType of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualCrossSectionAreaType = actual.getCrossSectionAreaType();
if (!Objects.areEqual(actualCrossSectionAreaType, crossSectionAreaType)) {
failWithMessage(assertjErrorMessage, actual, crossSectionAreaType, actualCrossSectionAreaType);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentCrossSectionArea's parentTopologySegment is equal to the given one.
* @param parentTopologySegment the given parentTopologySegment to compare the actual VecSegmentCrossSectionArea's parentTopologySegment to.
* @return this assertion object.
* @throws AssertionError - if the actual VecSegmentCrossSectionArea's parentTopologySegment is not equal to the given one.
*/
public S hasParentTopologySegment(VecTopologySegment parentTopologySegment) {
// check that actual VecSegmentCrossSectionArea we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentTopologySegment of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecTopologySegment actualParentTopologySegment = actual.getParentTopologySegment();
if (!Objects.areEqual(actualParentTopologySegment, parentTopologySegment)) {
failWithMessage(assertjErrorMessage, actual, parentTopologySegment, actualParentTopologySegment);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentCrossSectionArea's valueDetermination is equal to the given one.
* @param valueDetermination the given valueDetermination to compare the actual VecSegmentCrossSectionArea's valueDetermination to.
* @return this assertion object.
* @throws AssertionError - if the actual VecSegmentCrossSectionArea's valueDetermination is not equal to the given one.
*/
public S hasValueDetermination(VecValueDetermination valueDetermination) {
// check that actual VecSegmentCrossSectionArea we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting valueDetermination of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecValueDetermination actualValueDetermination = actual.getValueDetermination();
if (!Objects.areEqual(actualValueDetermination, valueDetermination)) {
failWithMessage(assertjErrorMessage, actual, valueDetermination, actualValueDetermination);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy