
com.foursoft.vecmodel.vec120.AbstractVecSegmentMappingAssert 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 VecSegmentMapping} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecSegmentMappingAssert, A extends VecSegmentMapping> extends AbstractObjectAssert {
/**
* Creates a new {@link AbstractVecSegmentMappingAssert}
to make assertions on actual VecSegmentMapping.
* @param actual the VecSegmentMapping we want to make assertions on.
*/
protected AbstractVecSegmentMappingAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecSegmentMapping's innerSegment is equal to the given one.
* @param innerSegment the given innerSegment to compare the actual VecSegmentMapping's innerSegment to.
* @return this assertion object.
* @throws AssertionError - if the actual VecSegmentMapping's innerSegment is not equal to the given one.
*/
public S hasInnerSegment(VecTopologySegment innerSegment) {
// check that actual VecSegmentMapping we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting innerSegment of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecTopologySegment actualInnerSegment = actual.getInnerSegment();
if (!Objects.areEqual(actualInnerSegment, innerSegment)) {
failWithMessage(assertjErrorMessage, actual, innerSegment, actualInnerSegment);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentMapping's mappedPosition is equal to the given one.
* @param mappedPosition the given mappedPosition to compare the actual VecSegmentMapping's mappedPosition to.
* @return this assertion object.
* @throws AssertionError - if the actual VecSegmentMapping's mappedPosition is not equal to the given one.
*/
public S hasMappedPosition(VecPath mappedPosition) {
// check that actual VecSegmentMapping we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting mappedPosition of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecPath actualMappedPosition = actual.getMappedPosition();
if (!Objects.areEqual(actualMappedPosition, mappedPosition)) {
failWithMessage(assertjErrorMessage, actual, mappedPosition, actualMappedPosition);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentMapping's parentTopologyMappingSpecification is equal to the given one.
* @param parentTopologyMappingSpecification the given parentTopologyMappingSpecification to compare the actual VecSegmentMapping's parentTopologyMappingSpecification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecSegmentMapping's parentTopologyMappingSpecification is not equal to the given one.
*/
public S hasParentTopologyMappingSpecification(VecTopologyMappingSpecification parentTopologyMappingSpecification) {
// check that actual VecSegmentMapping we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentTopologyMappingSpecification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecTopologyMappingSpecification actualParentTopologyMappingSpecification = actual.getParentTopologyMappingSpecification();
if (!Objects.areEqual(actualParentTopologyMappingSpecification, parentTopologyMappingSpecification)) {
failWithMessage(assertjErrorMessage, actual, parentTopologyMappingSpecification, actualParentTopologyMappingSpecification);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentMapping's xmlId is equal to the given one.
* @param xmlId the given xmlId to compare the actual VecSegmentMapping's xmlId to.
* @return this assertion object.
* @throws AssertionError - if the actual VecSegmentMapping's xmlId is not equal to the given one.
*/
public S hasXmlId(String xmlId) {
// check that actual VecSegmentMapping 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