
com.foursoft.vecmodel.vec120.AbstractVecCableLeadThroughSpecificationAssert 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 VecCableLeadThroughSpecification} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecCableLeadThroughSpecificationAssert, A extends VecCableLeadThroughSpecification> extends AbstractVecSpecificationAssert {
/**
* Creates a new {@link AbstractVecCableLeadThroughSpecificationAssert}
to make assertions on actual VecCableLeadThroughSpecification.
* @param actual the VecCableLeadThroughSpecification we want to make assertions on.
*/
protected AbstractVecCableLeadThroughSpecificationAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecCableLeadThroughSpecification's geometry is equal to the given one.
* @param geometry the given geometry to compare the actual VecCableLeadThroughSpecification's geometry to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCableLeadThroughSpecification's geometry is not equal to the given one.
*/
public S hasGeometry(String geometry) {
// check that actual VecCableLeadThroughSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting geometry of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualGeometry = actual.getGeometry();
if (!Objects.areEqual(actualGeometry, geometry)) {
failWithMessage(assertjErrorMessage, actual, geometry, actualGeometry);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCableLeadThroughSpecification's maxSegmentOutsideDiameter is equal to the given one.
* @param maxSegmentOutsideDiameter the given maxSegmentOutsideDiameter to compare the actual VecCableLeadThroughSpecification's maxSegmentOutsideDiameter to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCableLeadThroughSpecification's maxSegmentOutsideDiameter is not equal to the given one.
*/
public S hasMaxSegmentOutsideDiameter(VecNumericalValue maxSegmentOutsideDiameter) {
// check that actual VecCableLeadThroughSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting maxSegmentOutsideDiameter of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualMaxSegmentOutsideDiameter = actual.getMaxSegmentOutsideDiameter();
if (!Objects.areEqual(actualMaxSegmentOutsideDiameter, maxSegmentOutsideDiameter)) {
failWithMessage(assertjErrorMessage, actual, maxSegmentOutsideDiameter, actualMaxSegmentOutsideDiameter);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCableLeadThroughSpecification's minSegmentOutsideDiameter is equal to the given one.
* @param minSegmentOutsideDiameter the given minSegmentOutsideDiameter to compare the actual VecCableLeadThroughSpecification's minSegmentOutsideDiameter to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCableLeadThroughSpecification's minSegmentOutsideDiameter is not equal to the given one.
*/
public S hasMinSegmentOutsideDiameter(VecNumericalValue minSegmentOutsideDiameter) {
// check that actual VecCableLeadThroughSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting minSegmentOutsideDiameter of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualMinSegmentOutsideDiameter = actual.getMinSegmentOutsideDiameter();
if (!Objects.areEqual(actualMinSegmentOutsideDiameter, minSegmentOutsideDiameter)) {
failWithMessage(assertjErrorMessage, actual, minSegmentOutsideDiameter, actualMinSegmentOutsideDiameter);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCableLeadThroughSpecification's refCableLeadThrough contains the given VecCableLeadThrough elements.
* @param refCableLeadThrough the given elements that should be contained in actual VecCableLeadThroughSpecification's refCableLeadThrough.
* @return this assertion object.
* @throws AssertionError if the actual VecCableLeadThroughSpecification's refCableLeadThrough does not contain all given VecCableLeadThrough elements.
*/
public S hasRefCableLeadThrough(VecCableLeadThrough... refCableLeadThrough) {
// check that actual VecCableLeadThroughSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCableLeadThrough varargs is not null.
if (refCableLeadThrough == null) failWithMessage("Expecting refCableLeadThrough 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.getRefCableLeadThrough(), refCableLeadThrough);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCableLeadThroughSpecification's refCableLeadThrough contains the given VecCableLeadThrough elements in Collection.
* @param refCableLeadThrough the given elements that should be contained in actual VecCableLeadThroughSpecification's refCableLeadThrough.
* @return this assertion object.
* @throws AssertionError if the actual VecCableLeadThroughSpecification's refCableLeadThrough does not contain all given VecCableLeadThrough elements.
*/
public S hasRefCableLeadThrough(java.util.Collection extends VecCableLeadThrough> refCableLeadThrough) {
// check that actual VecCableLeadThroughSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCableLeadThrough collection is not null.
if (refCableLeadThrough == null) {
failWithMessage("Expecting refCableLeadThrough 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.getRefCableLeadThrough(), refCableLeadThrough.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCableLeadThroughSpecification's refCableLeadThrough contains only the given VecCableLeadThrough elements and nothing else in whatever order.
* @param refCableLeadThrough the given elements that should be contained in actual VecCableLeadThroughSpecification's refCableLeadThrough.
* @return this assertion object.
* @throws AssertionError if the actual VecCableLeadThroughSpecification's refCableLeadThrough does not contain all given VecCableLeadThrough elements.
*/
public S hasOnlyRefCableLeadThrough(VecCableLeadThrough... refCableLeadThrough) {
// check that actual VecCableLeadThroughSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCableLeadThrough varargs is not null.
if (refCableLeadThrough == null) failWithMessage("Expecting refCableLeadThrough 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.getRefCableLeadThrough(), refCableLeadThrough);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCableLeadThroughSpecification's refCableLeadThrough contains only the given VecCableLeadThrough elements in Collection and nothing else in whatever order.
* @param refCableLeadThrough the given elements that should be contained in actual VecCableLeadThroughSpecification's refCableLeadThrough.
* @return this assertion object.
* @throws AssertionError if the actual VecCableLeadThroughSpecification's refCableLeadThrough does not contain all given VecCableLeadThrough elements.
*/
public S hasOnlyRefCableLeadThrough(java.util.Collection extends VecCableLeadThrough> refCableLeadThrough) {
// check that actual VecCableLeadThroughSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCableLeadThrough collection is not null.
if (refCableLeadThrough == null) {
failWithMessage("Expecting refCableLeadThrough 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.getRefCableLeadThrough(), refCableLeadThrough.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCableLeadThroughSpecification's refCableLeadThrough does not contain the given VecCableLeadThrough elements.
*
* @param refCableLeadThrough the given elements that should not be in actual VecCableLeadThroughSpecification's refCableLeadThrough.
* @return this assertion object.
* @throws AssertionError if the actual VecCableLeadThroughSpecification's refCableLeadThrough contains any given VecCableLeadThrough elements.
*/
public S doesNotHaveRefCableLeadThrough(VecCableLeadThrough... refCableLeadThrough) {
// check that actual VecCableLeadThroughSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCableLeadThrough varargs is not null.
if (refCableLeadThrough == null) failWithMessage("Expecting refCableLeadThrough parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefCableLeadThrough(), refCableLeadThrough);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCableLeadThroughSpecification's refCableLeadThrough does not contain the given VecCableLeadThrough elements in Collection.
*
* @param refCableLeadThrough the given elements that should not be in actual VecCableLeadThroughSpecification's refCableLeadThrough.
* @return this assertion object.
* @throws AssertionError if the actual VecCableLeadThroughSpecification's refCableLeadThrough contains any given VecCableLeadThrough elements.
*/
public S doesNotHaveRefCableLeadThrough(java.util.Collection extends VecCableLeadThrough> refCableLeadThrough) {
// check that actual VecCableLeadThroughSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCableLeadThrough collection is not null.
if (refCableLeadThrough == null) {
failWithMessage("Expecting refCableLeadThrough 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.getRefCableLeadThrough(), refCableLeadThrough.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCableLeadThroughSpecification has no refCableLeadThrough.
* @return this assertion object.
* @throws AssertionError if the actual VecCableLeadThroughSpecification's refCableLeadThrough is not empty.
*/
public S hasNoRefCableLeadThrough() {
// check that actual VecCableLeadThroughSpecification 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 refCableLeadThrough but had :\n <%s>";
// check
if (actual.getRefCableLeadThrough().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefCableLeadThrough());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCableLeadThroughSpecification is sealable.
* @return this assertion object.
* @throws AssertionError - if the actual VecCableLeadThroughSpecification is not sealable.
*/
public S isSealable() {
// check that actual VecCableLeadThroughSpecification we want to make assertions on is not null.
isNotNull();
// null safe check
if (Objects.areEqual(Boolean.FALSE, actual.isSealable())) {
failWithMessage("\nExpecting that actual VecCableLeadThroughSpecification is sealable but is not.");
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCableLeadThroughSpecification is not sealable.
* @return this assertion object.
* @throws AssertionError - if the actual VecCableLeadThroughSpecification is sealable.
*/
public S isNotSealable() {
// check that actual VecCableLeadThroughSpecification we want to make assertions on is not null.
isNotNull();
// null safe check
if (Objects.areEqual(Boolean.TRUE, actual.isSealable())) {
failWithMessage("\nExpecting that actual VecCableLeadThroughSpecification is not sealable but is.");
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCableLeadThroughSpecification's sealingDimension is equal to the given one.
* @param sealingDimension the given sealingDimension to compare the actual VecCableLeadThroughSpecification's sealingDimension to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCableLeadThroughSpecification's sealingDimension is not equal to the given one.
*/
public S hasSealingDimension(VecSize sealingDimension) {
// check that actual VecCableLeadThroughSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting sealingDimension of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecSize actualSealingDimension = actual.getSealingDimension();
if (!Objects.areEqual(actualSealingDimension, sealingDimension)) {
failWithMessage(assertjErrorMessage, actual, sealingDimension, actualSealingDimension);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCableLeadThroughSpecification's type is equal to the given one.
* @param type the given type to compare the actual VecCableLeadThroughSpecification's type to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCableLeadThroughSpecification's type is not equal to the given one.
*/
public S hasType(String type) {
// check that actual VecCableLeadThroughSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting type of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualType = actual.getType();
if (!Objects.areEqual(actualType, type)) {
failWithMessage(assertjErrorMessage, actual, type, actualType);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy