
com.foursoft.vecmodel.vec120.AbstractVecGrommetSpecificationAssert 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 VecGrommetSpecification} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecGrommetSpecificationAssert, A extends VecGrommetSpecification> extends AbstractVecPartOrUsageRelatedSpecificationAssert {
/**
* Creates a new {@link AbstractVecGrommetSpecificationAssert}
to make assertions on actual VecGrommetSpecification.
* @param actual the VecGrommetSpecification we want to make assertions on.
*/
protected AbstractVecGrommetSpecificationAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecGrommetSpecification's cableLeadThroughs contains the given VecCableLeadThrough elements.
* @param cableLeadThroughs the given elements that should be contained in actual VecGrommetSpecification's cableLeadThroughs.
* @return this assertion object.
* @throws AssertionError if the actual VecGrommetSpecification's cableLeadThroughs does not contain all given VecCableLeadThrough elements.
*/
public S hasCableLeadThroughs(VecCableLeadThrough... cableLeadThroughs) {
// check that actual VecGrommetSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCableLeadThrough varargs is not null.
if (cableLeadThroughs == null) failWithMessage("Expecting cableLeadThroughs 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.getCableLeadThroughs(), cableLeadThroughs);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecGrommetSpecification's cableLeadThroughs contains the given VecCableLeadThrough elements in Collection.
* @param cableLeadThroughs the given elements that should be contained in actual VecGrommetSpecification's cableLeadThroughs.
* @return this assertion object.
* @throws AssertionError if the actual VecGrommetSpecification's cableLeadThroughs does not contain all given VecCableLeadThrough elements.
*/
public S hasCableLeadThroughs(java.util.Collection extends VecCableLeadThrough> cableLeadThroughs) {
// check that actual VecGrommetSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCableLeadThrough collection is not null.
if (cableLeadThroughs == null) {
failWithMessage("Expecting cableLeadThroughs 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.getCableLeadThroughs(), cableLeadThroughs.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecGrommetSpecification's cableLeadThroughs contains only the given VecCableLeadThrough elements and nothing else in whatever order.
* @param cableLeadThroughs the given elements that should be contained in actual VecGrommetSpecification's cableLeadThroughs.
* @return this assertion object.
* @throws AssertionError if the actual VecGrommetSpecification's cableLeadThroughs does not contain all given VecCableLeadThrough elements.
*/
public S hasOnlyCableLeadThroughs(VecCableLeadThrough... cableLeadThroughs) {
// check that actual VecGrommetSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCableLeadThrough varargs is not null.
if (cableLeadThroughs == null) failWithMessage("Expecting cableLeadThroughs 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.getCableLeadThroughs(), cableLeadThroughs);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecGrommetSpecification's cableLeadThroughs contains only the given VecCableLeadThrough elements in Collection and nothing else in whatever order.
* @param cableLeadThroughs the given elements that should be contained in actual VecGrommetSpecification's cableLeadThroughs.
* @return this assertion object.
* @throws AssertionError if the actual VecGrommetSpecification's cableLeadThroughs does not contain all given VecCableLeadThrough elements.
*/
public S hasOnlyCableLeadThroughs(java.util.Collection extends VecCableLeadThrough> cableLeadThroughs) {
// check that actual VecGrommetSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCableLeadThrough collection is not null.
if (cableLeadThroughs == null) {
failWithMessage("Expecting cableLeadThroughs 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.getCableLeadThroughs(), cableLeadThroughs.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecGrommetSpecification's cableLeadThroughs does not contain the given VecCableLeadThrough elements.
*
* @param cableLeadThroughs the given elements that should not be in actual VecGrommetSpecification's cableLeadThroughs.
* @return this assertion object.
* @throws AssertionError if the actual VecGrommetSpecification's cableLeadThroughs contains any given VecCableLeadThrough elements.
*/
public S doesNotHaveCableLeadThroughs(VecCableLeadThrough... cableLeadThroughs) {
// check that actual VecGrommetSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCableLeadThrough varargs is not null.
if (cableLeadThroughs == null) failWithMessage("Expecting cableLeadThroughs parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getCableLeadThroughs(), cableLeadThroughs);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecGrommetSpecification's cableLeadThroughs does not contain the given VecCableLeadThrough elements in Collection.
*
* @param cableLeadThroughs the given elements that should not be in actual VecGrommetSpecification's cableLeadThroughs.
* @return this assertion object.
* @throws AssertionError if the actual VecGrommetSpecification's cableLeadThroughs contains any given VecCableLeadThrough elements.
*/
public S doesNotHaveCableLeadThroughs(java.util.Collection extends VecCableLeadThrough> cableLeadThroughs) {
// check that actual VecGrommetSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCableLeadThrough collection is not null.
if (cableLeadThroughs == null) {
failWithMessage("Expecting cableLeadThroughs 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.getCableLeadThroughs(), cableLeadThroughs.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecGrommetSpecification has no cableLeadThroughs.
* @return this assertion object.
* @throws AssertionError if the actual VecGrommetSpecification's cableLeadThroughs is not empty.
*/
public S hasNoCableLeadThroughs() {
// check that actual VecGrommetSpecification 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 cableLeadThroughs but had :\n <%s>";
// check
if (actual.getCableLeadThroughs().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getCableLeadThroughs());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecGrommetSpecification's grommetType is equal to the given one.
* @param grommetType the given grommetType to compare the actual VecGrommetSpecification's grommetType to.
* @return this assertion object.
* @throws AssertionError - if the actual VecGrommetSpecification's grommetType is not equal to the given one.
*/
public S hasGrommetType(String grommetType) {
// check that actual VecGrommetSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting grommetType of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualGrommetType = actual.getGrommetType();
if (!Objects.areEqual(actualGrommetType, grommetType)) {
failWithMessage(assertjErrorMessage, actual, grommetType, actualGrommetType);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecGrommetSpecification's hardness is equal to the given one.
* @param hardness the given hardness to compare the actual VecGrommetSpecification's hardness to.
* @return this assertion object.
* @throws AssertionError - if the actual VecGrommetSpecification's hardness is not equal to the given one.
*/
public S hasHardness(VecNumericalValue hardness) {
// check that actual VecGrommetSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting hardness of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualHardness = actual.getHardness();
if (!Objects.areEqual(actualHardness, hardness)) {
failWithMessage(assertjErrorMessage, actual, hardness, actualHardness);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecGrommetSpecification's holeDiameter is equal to the given one.
* @param holeDiameter the given holeDiameter to compare the actual VecGrommetSpecification's holeDiameter to.
* @return this assertion object.
* @throws AssertionError - if the actual VecGrommetSpecification's holeDiameter is not equal to the given one.
*/
public S hasHoleDiameter(VecNumericalValue holeDiameter) {
// check that actual VecGrommetSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting holeDiameter of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualHoleDiameter = actual.getHoleDiameter();
if (!Objects.areEqual(actualHoleDiameter, holeDiameter)) {
failWithMessage(assertjErrorMessage, actual, holeDiameter, actualHoleDiameter);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecGrommetSpecification's plateThickness is equal to the given one.
* @param plateThickness the given plateThickness to compare the actual VecGrommetSpecification's plateThickness to.
* @return this assertion object.
* @throws AssertionError - if the actual VecGrommetSpecification's plateThickness is not equal to the given one.
*/
public S hasPlateThickness(VecValueRange plateThickness) {
// check that actual VecGrommetSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting plateThickness of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecValueRange actualPlateThickness = actual.getPlateThickness();
if (!Objects.areEqual(actualPlateThickness, plateThickness)) {
failWithMessage(assertjErrorMessage, actual, plateThickness, actualPlateThickness);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecGrommetSpecification's refGrommetRole contains the given VecGrommetRole elements.
* @param refGrommetRole the given elements that should be contained in actual VecGrommetSpecification's refGrommetRole.
* @return this assertion object.
* @throws AssertionError if the actual VecGrommetSpecification's refGrommetRole does not contain all given VecGrommetRole elements.
*/
public S hasRefGrommetRole(VecGrommetRole... refGrommetRole) {
// check that actual VecGrommetSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecGrommetRole varargs is not null.
if (refGrommetRole == null) failWithMessage("Expecting refGrommetRole 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.getRefGrommetRole(), refGrommetRole);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecGrommetSpecification's refGrommetRole contains the given VecGrommetRole elements in Collection.
* @param refGrommetRole the given elements that should be contained in actual VecGrommetSpecification's refGrommetRole.
* @return this assertion object.
* @throws AssertionError if the actual VecGrommetSpecification's refGrommetRole does not contain all given VecGrommetRole elements.
*/
public S hasRefGrommetRole(java.util.Collection extends VecGrommetRole> refGrommetRole) {
// check that actual VecGrommetSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecGrommetRole collection is not null.
if (refGrommetRole == null) {
failWithMessage("Expecting refGrommetRole 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.getRefGrommetRole(), refGrommetRole.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecGrommetSpecification's refGrommetRole contains only the given VecGrommetRole elements and nothing else in whatever order.
* @param refGrommetRole the given elements that should be contained in actual VecGrommetSpecification's refGrommetRole.
* @return this assertion object.
* @throws AssertionError if the actual VecGrommetSpecification's refGrommetRole does not contain all given VecGrommetRole elements.
*/
public S hasOnlyRefGrommetRole(VecGrommetRole... refGrommetRole) {
// check that actual VecGrommetSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecGrommetRole varargs is not null.
if (refGrommetRole == null) failWithMessage("Expecting refGrommetRole 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.getRefGrommetRole(), refGrommetRole);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecGrommetSpecification's refGrommetRole contains only the given VecGrommetRole elements in Collection and nothing else in whatever order.
* @param refGrommetRole the given elements that should be contained in actual VecGrommetSpecification's refGrommetRole.
* @return this assertion object.
* @throws AssertionError if the actual VecGrommetSpecification's refGrommetRole does not contain all given VecGrommetRole elements.
*/
public S hasOnlyRefGrommetRole(java.util.Collection extends VecGrommetRole> refGrommetRole) {
// check that actual VecGrommetSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecGrommetRole collection is not null.
if (refGrommetRole == null) {
failWithMessage("Expecting refGrommetRole 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.getRefGrommetRole(), refGrommetRole.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecGrommetSpecification's refGrommetRole does not contain the given VecGrommetRole elements.
*
* @param refGrommetRole the given elements that should not be in actual VecGrommetSpecification's refGrommetRole.
* @return this assertion object.
* @throws AssertionError if the actual VecGrommetSpecification's refGrommetRole contains any given VecGrommetRole elements.
*/
public S doesNotHaveRefGrommetRole(VecGrommetRole... refGrommetRole) {
// check that actual VecGrommetSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecGrommetRole varargs is not null.
if (refGrommetRole == null) failWithMessage("Expecting refGrommetRole parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefGrommetRole(), refGrommetRole);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecGrommetSpecification's refGrommetRole does not contain the given VecGrommetRole elements in Collection.
*
* @param refGrommetRole the given elements that should not be in actual VecGrommetSpecification's refGrommetRole.
* @return this assertion object.
* @throws AssertionError if the actual VecGrommetSpecification's refGrommetRole contains any given VecGrommetRole elements.
*/
public S doesNotHaveRefGrommetRole(java.util.Collection extends VecGrommetRole> refGrommetRole) {
// check that actual VecGrommetSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecGrommetRole collection is not null.
if (refGrommetRole == null) {
failWithMessage("Expecting refGrommetRole 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.getRefGrommetRole(), refGrommetRole.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecGrommetSpecification has no refGrommetRole.
* @return this assertion object.
* @throws AssertionError if the actual VecGrommetSpecification's refGrommetRole is not empty.
*/
public S hasNoRefGrommetRole() {
// check that actual VecGrommetSpecification 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 refGrommetRole but had :\n <%s>";
// check
if (actual.getRefGrommetRole().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefGrommetRole());
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy