
com.foursoft.vecmodel.vec120.AbstractVecTopologyBendingRestrictionAssert 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 VecTopologyBendingRestriction} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecTopologyBendingRestrictionAssert, A extends VecTopologyBendingRestriction> extends AbstractObjectAssert {
/**
* Creates a new {@link AbstractVecTopologyBendingRestrictionAssert}
to make assertions on actual VecTopologyBendingRestriction.
* @param actual the VecTopologyBendingRestriction we want to make assertions on.
*/
protected AbstractVecTopologyBendingRestrictionAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecTopologyBendingRestriction's minBendRadiusDynamic is equal to the given one.
* @param minBendRadiusDynamic the given minBendRadiusDynamic to compare the actual VecTopologyBendingRestriction's minBendRadiusDynamic to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTopologyBendingRestriction's minBendRadiusDynamic is not equal to the given one.
*/
public S hasMinBendRadiusDynamic(VecNumericalValue minBendRadiusDynamic) {
// check that actual VecTopologyBendingRestriction we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting minBendRadiusDynamic of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualMinBendRadiusDynamic = actual.getMinBendRadiusDynamic();
if (!Objects.areEqual(actualMinBendRadiusDynamic, minBendRadiusDynamic)) {
failWithMessage(assertjErrorMessage, actual, minBendRadiusDynamic, actualMinBendRadiusDynamic);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyBendingRestriction's minBendRadiusStatic is equal to the given one.
* @param minBendRadiusStatic the given minBendRadiusStatic to compare the actual VecTopologyBendingRestriction's minBendRadiusStatic to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTopologyBendingRestriction's minBendRadiusStatic is not equal to the given one.
*/
public S hasMinBendRadiusStatic(VecNumericalValue minBendRadiusStatic) {
// check that actual VecTopologyBendingRestriction we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting minBendRadiusStatic of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualMinBendRadiusStatic = actual.getMinBendRadiusStatic();
if (!Objects.areEqual(actualMinBendRadiusStatic, minBendRadiusStatic)) {
failWithMessage(assertjErrorMessage, actual, minBendRadiusStatic, actualMinBendRadiusStatic);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyBendingRestriction's parentTopologyBendingRestrictionSpecification is equal to the given one.
* @param parentTopologyBendingRestrictionSpecification the given parentTopologyBendingRestrictionSpecification to compare the actual VecTopologyBendingRestriction's parentTopologyBendingRestrictionSpecification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTopologyBendingRestriction's parentTopologyBendingRestrictionSpecification is not equal to the given one.
*/
public S hasParentTopologyBendingRestrictionSpecification(VecTopologyBendingRestrictionSpecification parentTopologyBendingRestrictionSpecification) {
// check that actual VecTopologyBendingRestriction we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentTopologyBendingRestrictionSpecification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecTopologyBendingRestrictionSpecification actualParentTopologyBendingRestrictionSpecification = actual.getParentTopologyBendingRestrictionSpecification();
if (!Objects.areEqual(actualParentTopologyBendingRestrictionSpecification, parentTopologyBendingRestrictionSpecification)) {
failWithMessage(assertjErrorMessage, actual, parentTopologyBendingRestrictionSpecification, actualParentTopologyBendingRestrictionSpecification);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyBendingRestriction's restrictedPath is equal to the given one.
* @param restrictedPath the given restrictedPath to compare the actual VecTopologyBendingRestriction's restrictedPath to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTopologyBendingRestriction's restrictedPath is not equal to the given one.
*/
public S hasRestrictedPath(VecPath restrictedPath) {
// check that actual VecTopologyBendingRestriction we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting restrictedPath of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecPath actualRestrictedPath = actual.getRestrictedPath();
if (!Objects.areEqual(actualRestrictedPath, restrictedPath)) {
failWithMessage(assertjErrorMessage, actual, restrictedPath, actualRestrictedPath);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyBendingRestriction's xmlId is equal to the given one.
* @param xmlId the given xmlId to compare the actual VecTopologyBendingRestriction's xmlId to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTopologyBendingRestriction's xmlId is not equal to the given one.
*/
public S hasXmlId(String xmlId) {
// check that actual VecTopologyBendingRestriction 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