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