
com.foursoft.vecmodel.vec120.AbstractVecPotentialDistributorSpecificationAssert 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 VecPotentialDistributorSpecification} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecPotentialDistributorSpecificationAssert, A extends VecPotentialDistributorSpecification> extends AbstractVecEEComponentSpecificationAssert {
/**
* Creates a new {@link AbstractVecPotentialDistributorSpecificationAssert}
to make assertions on actual VecPotentialDistributorSpecification.
* @param actual the VecPotentialDistributorSpecification we want to make assertions on.
*/
protected AbstractVecPotentialDistributorSpecificationAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecPotentialDistributorSpecification's boltDiameter is equal to the given one.
* @param boltDiameter the given boltDiameter to compare the actual VecPotentialDistributorSpecification's boltDiameter to.
* @return this assertion object.
* @throws AssertionError - if the actual VecPotentialDistributorSpecification's boltDiameter is not equal to the given one.
*/
public S hasBoltDiameter(VecNumericalValue boltDiameter) {
// check that actual VecPotentialDistributorSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting boltDiameter of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualBoltDiameter = actual.getBoltDiameter();
if (!Objects.areEqual(actualBoltDiameter, boltDiameter)) {
failWithMessage(assertjErrorMessage, actual, boltDiameter, actualBoltDiameter);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPotentialDistributorSpecification's boltType is equal to the given one.
* @param boltType the given boltType to compare the actual VecPotentialDistributorSpecification's boltType to.
* @return this assertion object.
* @throws AssertionError - if the actual VecPotentialDistributorSpecification's boltType is not equal to the given one.
*/
public S hasBoltType(String boltType) {
// check that actual VecPotentialDistributorSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting boltType of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualBoltType = actual.getBoltType();
if (!Objects.areEqual(actualBoltType, boltType)) {
failWithMessage(assertjErrorMessage, actual, boltType, actualBoltType);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPotentialDistributorSpecification is screwable.
* @return this assertion object.
* @throws AssertionError - if the actual VecPotentialDistributorSpecification is not screwable.
*/
public S isScrewable() {
// check that actual VecPotentialDistributorSpecification we want to make assertions on is not null.
isNotNull();
// null safe check
if (Objects.areEqual(Boolean.FALSE, actual.isScrewable())) {
failWithMessage("\nExpecting that actual VecPotentialDistributorSpecification is screwable but is not.");
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPotentialDistributorSpecification is not screwable.
* @return this assertion object.
* @throws AssertionError - if the actual VecPotentialDistributorSpecification is screwable.
*/
public S isNotScrewable() {
// check that actual VecPotentialDistributorSpecification we want to make assertions on is not null.
isNotNull();
// null safe check
if (Objects.areEqual(Boolean.TRUE, actual.isScrewable())) {
failWithMessage("\nExpecting that actual VecPotentialDistributorSpecification is not screwable but is.");
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy