
com.foursoft.vecmodel.vec120.AbstractVecCavitySealSpecificationAssert 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.internal.Iterables;
import org.assertj.core.util.Objects;
/**
* Abstract base class for {@link VecCavitySealSpecification} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecCavitySealSpecificationAssert, A extends VecCavitySealSpecification> extends AbstractVecCavityPartSpecificationAssert {
/**
* Creates a new {@link AbstractVecCavitySealSpecificationAssert}
to make assertions on actual VecCavitySealSpecification.
* @param actual the VecCavitySealSpecification we want to make assertions on.
*/
protected AbstractVecCavitySealSpecificationAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecCavitySealSpecification's insideDiameter is equal to the given one.
* @param insideDiameter the given insideDiameter to compare the actual VecCavitySealSpecification's insideDiameter to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCavitySealSpecification's insideDiameter is not equal to the given one.
*/
public S hasInsideDiameter(VecNumericalValue insideDiameter) {
// check that actual VecCavitySealSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting insideDiameter of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualInsideDiameter = actual.getInsideDiameter();
if (!Objects.areEqual(actualInsideDiameter, insideDiameter)) {
failWithMessage(assertjErrorMessage, actual, insideDiameter, actualInsideDiameter);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCavitySealSpecification's refCavitySealRole contains the given VecCavitySealRole elements.
* @param refCavitySealRole the given elements that should be contained in actual VecCavitySealSpecification's refCavitySealRole.
* @return this assertion object.
* @throws AssertionError if the actual VecCavitySealSpecification's refCavitySealRole does not contain all given VecCavitySealRole elements.
*/
public S hasRefCavitySealRole(VecCavitySealRole... refCavitySealRole) {
// check that actual VecCavitySealSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCavitySealRole varargs is not null.
if (refCavitySealRole == null) failWithMessage("Expecting refCavitySealRole parameter not to be null.");
// check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
Iterables.instance().assertContains(info, actual.getRefCavitySealRole(), refCavitySealRole);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCavitySealSpecification's refCavitySealRole contains the given VecCavitySealRole elements in Collection.
* @param refCavitySealRole the given elements that should be contained in actual VecCavitySealSpecification's refCavitySealRole.
* @return this assertion object.
* @throws AssertionError if the actual VecCavitySealSpecification's refCavitySealRole does not contain all given VecCavitySealRole elements.
*/
public S hasRefCavitySealRole(java.util.Collection extends VecCavitySealRole> refCavitySealRole) {
// check that actual VecCavitySealSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCavitySealRole collection is not null.
if (refCavitySealRole == null) {
failWithMessage("Expecting refCavitySealRole parameter not to be null.");
return myself; // to fool Eclipse "Null pointer access" warning on toArray.
}
// check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
Iterables.instance().assertContains(info, actual.getRefCavitySealRole(), refCavitySealRole.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCavitySealSpecification's refCavitySealRole contains only the given VecCavitySealRole elements and nothing else in whatever order.
* @param refCavitySealRole the given elements that should be contained in actual VecCavitySealSpecification's refCavitySealRole.
* @return this assertion object.
* @throws AssertionError if the actual VecCavitySealSpecification's refCavitySealRole does not contain all given VecCavitySealRole elements.
*/
public S hasOnlyRefCavitySealRole(VecCavitySealRole... refCavitySealRole) {
// check that actual VecCavitySealSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCavitySealRole varargs is not null.
if (refCavitySealRole == null) failWithMessage("Expecting refCavitySealRole parameter not to be null.");
// check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
Iterables.instance().assertContainsOnly(info, actual.getRefCavitySealRole(), refCavitySealRole);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCavitySealSpecification's refCavitySealRole contains only the given VecCavitySealRole elements in Collection and nothing else in whatever order.
* @param refCavitySealRole the given elements that should be contained in actual VecCavitySealSpecification's refCavitySealRole.
* @return this assertion object.
* @throws AssertionError if the actual VecCavitySealSpecification's refCavitySealRole does not contain all given VecCavitySealRole elements.
*/
public S hasOnlyRefCavitySealRole(java.util.Collection extends VecCavitySealRole> refCavitySealRole) {
// check that actual VecCavitySealSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCavitySealRole collection is not null.
if (refCavitySealRole == null) {
failWithMessage("Expecting refCavitySealRole parameter not to be null.");
return myself; // to fool Eclipse "Null pointer access" warning on toArray.
}
// check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
Iterables.instance().assertContainsOnly(info, actual.getRefCavitySealRole(), refCavitySealRole.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCavitySealSpecification's refCavitySealRole does not contain the given VecCavitySealRole elements.
*
* @param refCavitySealRole the given elements that should not be in actual VecCavitySealSpecification's refCavitySealRole.
* @return this assertion object.
* @throws AssertionError if the actual VecCavitySealSpecification's refCavitySealRole contains any given VecCavitySealRole elements.
*/
public S doesNotHaveRefCavitySealRole(VecCavitySealRole... refCavitySealRole) {
// check that actual VecCavitySealSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCavitySealRole varargs is not null.
if (refCavitySealRole == null) failWithMessage("Expecting refCavitySealRole parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefCavitySealRole(), refCavitySealRole);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCavitySealSpecification's refCavitySealRole does not contain the given VecCavitySealRole elements in Collection.
*
* @param refCavitySealRole the given elements that should not be in actual VecCavitySealSpecification's refCavitySealRole.
* @return this assertion object.
* @throws AssertionError if the actual VecCavitySealSpecification's refCavitySealRole contains any given VecCavitySealRole elements.
*/
public S doesNotHaveRefCavitySealRole(java.util.Collection extends VecCavitySealRole> refCavitySealRole) {
// check that actual VecCavitySealSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCavitySealRole collection is not null.
if (refCavitySealRole == null) {
failWithMessage("Expecting refCavitySealRole parameter not to be null.");
return myself; // to fool Eclipse "Null pointer access" warning on toArray.
}
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefCavitySealRole(), refCavitySealRole.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCavitySealSpecification has no refCavitySealRole.
* @return this assertion object.
* @throws AssertionError if the actual VecCavitySealSpecification's refCavitySealRole is not empty.
*/
public S hasNoRefCavitySealRole() {
// check that actual VecCavitySealSpecification we want to make assertions on is not null.
isNotNull();
// we override the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting :\n <%s>\nnot to have refCavitySealRole but had :\n <%s>";
// check
if (actual.getRefCavitySealRole().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefCavitySealRole());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCavitySealSpecification's wireElementOutsideDiameter is equal to the given one.
* @param wireElementOutsideDiameter the given wireElementOutsideDiameter to compare the actual VecCavitySealSpecification's wireElementOutsideDiameter to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCavitySealSpecification's wireElementOutsideDiameter is not equal to the given one.
*/
public S hasWireElementOutsideDiameter(VecValueRange wireElementOutsideDiameter) {
// check that actual VecCavitySealSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting wireElementOutsideDiameter of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecValueRange actualWireElementOutsideDiameter = actual.getWireElementOutsideDiameter();
if (!Objects.areEqual(actualWireElementOutsideDiameter, wireElementOutsideDiameter)) {
failWithMessage(assertjErrorMessage, actual, wireElementOutsideDiameter, actualWireElementOutsideDiameter);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCavitySealSpecification's wireReceptionType is equal to the given one.
* @param wireReceptionType the given wireReceptionType to compare the actual VecCavitySealSpecification's wireReceptionType to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCavitySealSpecification's wireReceptionType is not equal to the given one.
*/
public S hasWireReceptionType(String wireReceptionType) {
// check that actual VecCavitySealSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting wireReceptionType of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualWireReceptionType = actual.getWireReceptionType();
if (!Objects.areEqual(actualWireReceptionType, wireReceptionType)) {
failWithMessage(assertjErrorMessage, actual, wireReceptionType, actualWireReceptionType);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy