
com.foursoft.vecmodel.vec120.AbstractVecCableDuctOutletAssert 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 VecCableDuctOutlet} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecCableDuctOutletAssert, A extends VecCableDuctOutlet> extends AbstractVecExtendableElementAssert {
/**
* Creates a new {@link AbstractVecCableDuctOutletAssert}
to make assertions on actual VecCableDuctOutlet.
* @param actual the VecCableDuctOutlet we want to make assertions on.
*/
protected AbstractVecCableDuctOutletAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecCableDuctOutlet's identification is equal to the given one.
* @param identification the given identification to compare the actual VecCableDuctOutlet's identification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCableDuctOutlet's identification is not equal to the given one.
*/
public S hasIdentification(String identification) {
// check that actual VecCableDuctOutlet 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 VecCableDuctOutlet's parentCableDuctSpecification is equal to the given one.
* @param parentCableDuctSpecification the given parentCableDuctSpecification to compare the actual VecCableDuctOutlet's parentCableDuctSpecification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCableDuctOutlet's parentCableDuctSpecification is not equal to the given one.
*/
public S hasParentCableDuctSpecification(VecCableDuctSpecification parentCableDuctSpecification) {
// check that actual VecCableDuctOutlet we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentCableDuctSpecification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecCableDuctSpecification actualParentCableDuctSpecification = actual.getParentCableDuctSpecification();
if (!Objects.areEqual(actualParentCableDuctSpecification, parentCableDuctSpecification)) {
failWithMessage(assertjErrorMessage, actual, parentCableDuctSpecification, actualParentCableDuctSpecification);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCableDuctOutlet's placementPoint is equal to the given one.
* @param placementPoint the given placementPoint to compare the actual VecCableDuctOutlet's placementPoint to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCableDuctOutlet's placementPoint is not equal to the given one.
*/
public S hasPlacementPoint(VecPlacementPoint placementPoint) {
// check that actual VecCableDuctOutlet we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting placementPoint of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecPlacementPoint actualPlacementPoint = actual.getPlacementPoint();
if (!Objects.areEqual(actualPlacementPoint, placementPoint)) {
failWithMessage(assertjErrorMessage, actual, placementPoint, actualPlacementPoint);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy