
com.foursoft.vecmodel.vec120.AbstractVecLocalGeometrySpecificationAssert 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 VecLocalGeometrySpecification} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecLocalGeometrySpecificationAssert, A extends VecLocalGeometrySpecification> extends AbstractVecPartOrUsageRelatedSpecificationAssert {
/**
* Creates a new {@link AbstractVecLocalGeometrySpecificationAssert}
to make assertions on actual VecLocalGeometrySpecification.
* @param actual the VecLocalGeometrySpecification we want to make assertions on.
*/
protected AbstractVecLocalGeometrySpecificationAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecLocalGeometrySpecification's baseUnit is equal to the given one.
* @param baseUnit the given baseUnit to compare the actual VecLocalGeometrySpecification's baseUnit to.
* @return this assertion object.
* @throws AssertionError - if the actual VecLocalGeometrySpecification's baseUnit is not equal to the given one.
*/
public S hasBaseUnit(VecUnit baseUnit) {
// check that actual VecLocalGeometrySpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting baseUnit of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecUnit actualBaseUnit = actual.getBaseUnit();
if (!Objects.areEqual(actualBaseUnit, baseUnit)) {
failWithMessage(assertjErrorMessage, actual, baseUnit, actualBaseUnit);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecLocalGeometrySpecification's boundingBoxPositioning is equal to the given one.
* @param boundingBoxPositioning the given boundingBoxPositioning to compare the actual VecLocalGeometrySpecification's boundingBoxPositioning to.
* @return this assertion object.
* @throws AssertionError - if the actual VecLocalGeometrySpecification's boundingBoxPositioning is not equal to the given one.
*/
public S hasBoundingBoxPositioning(VecTransformation3D boundingBoxPositioning) {
// check that actual VecLocalGeometrySpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting boundingBoxPositioning of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecTransformation3D actualBoundingBoxPositioning = actual.getBoundingBoxPositioning();
if (!Objects.areEqual(actualBoundingBoxPositioning, boundingBoxPositioning)) {
failWithMessage(assertjErrorMessage, actual, boundingBoxPositioning, actualBoundingBoxPositioning);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecLocalGeometrySpecification's cartesianPoints contains the given VecCartesianPoint3D elements.
* @param cartesianPoints the given elements that should be contained in actual VecLocalGeometrySpecification's cartesianPoints.
* @return this assertion object.
* @throws AssertionError if the actual VecLocalGeometrySpecification's cartesianPoints does not contain all given VecCartesianPoint3D elements.
*/
public S hasCartesianPoints(VecCartesianPoint3D... cartesianPoints) {
// check that actual VecLocalGeometrySpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCartesianPoint3D varargs is not null.
if (cartesianPoints == null) failWithMessage("Expecting cartesianPoints 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.getCartesianPoints(), cartesianPoints);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecLocalGeometrySpecification's cartesianPoints contains the given VecCartesianPoint3D elements in Collection.
* @param cartesianPoints the given elements that should be contained in actual VecLocalGeometrySpecification's cartesianPoints.
* @return this assertion object.
* @throws AssertionError if the actual VecLocalGeometrySpecification's cartesianPoints does not contain all given VecCartesianPoint3D elements.
*/
public S hasCartesianPoints(java.util.Collection extends VecCartesianPoint3D> cartesianPoints) {
// check that actual VecLocalGeometrySpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCartesianPoint3D collection is not null.
if (cartesianPoints == null) {
failWithMessage("Expecting cartesianPoints 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.getCartesianPoints(), cartesianPoints.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecLocalGeometrySpecification's cartesianPoints contains only the given VecCartesianPoint3D elements and nothing else in whatever order.
* @param cartesianPoints the given elements that should be contained in actual VecLocalGeometrySpecification's cartesianPoints.
* @return this assertion object.
* @throws AssertionError if the actual VecLocalGeometrySpecification's cartesianPoints does not contain all given VecCartesianPoint3D elements.
*/
public S hasOnlyCartesianPoints(VecCartesianPoint3D... cartesianPoints) {
// check that actual VecLocalGeometrySpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCartesianPoint3D varargs is not null.
if (cartesianPoints == null) failWithMessage("Expecting cartesianPoints 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.getCartesianPoints(), cartesianPoints);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecLocalGeometrySpecification's cartesianPoints contains only the given VecCartesianPoint3D elements in Collection and nothing else in whatever order.
* @param cartesianPoints the given elements that should be contained in actual VecLocalGeometrySpecification's cartesianPoints.
* @return this assertion object.
* @throws AssertionError if the actual VecLocalGeometrySpecification's cartesianPoints does not contain all given VecCartesianPoint3D elements.
*/
public S hasOnlyCartesianPoints(java.util.Collection extends VecCartesianPoint3D> cartesianPoints) {
// check that actual VecLocalGeometrySpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCartesianPoint3D collection is not null.
if (cartesianPoints == null) {
failWithMessage("Expecting cartesianPoints 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.getCartesianPoints(), cartesianPoints.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecLocalGeometrySpecification's cartesianPoints does not contain the given VecCartesianPoint3D elements.
*
* @param cartesianPoints the given elements that should not be in actual VecLocalGeometrySpecification's cartesianPoints.
* @return this assertion object.
* @throws AssertionError if the actual VecLocalGeometrySpecification's cartesianPoints contains any given VecCartesianPoint3D elements.
*/
public S doesNotHaveCartesianPoints(VecCartesianPoint3D... cartesianPoints) {
// check that actual VecLocalGeometrySpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCartesianPoint3D varargs is not null.
if (cartesianPoints == null) failWithMessage("Expecting cartesianPoints parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getCartesianPoints(), cartesianPoints);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecLocalGeometrySpecification's cartesianPoints does not contain the given VecCartesianPoint3D elements in Collection.
*
* @param cartesianPoints the given elements that should not be in actual VecLocalGeometrySpecification's cartesianPoints.
* @return this assertion object.
* @throws AssertionError if the actual VecLocalGeometrySpecification's cartesianPoints contains any given VecCartesianPoint3D elements.
*/
public S doesNotHaveCartesianPoints(java.util.Collection extends VecCartesianPoint3D> cartesianPoints) {
// check that actual VecLocalGeometrySpecification we want to make assertions on is not null.
isNotNull();
// check that given VecCartesianPoint3D collection is not null.
if (cartesianPoints == null) {
failWithMessage("Expecting cartesianPoints 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.getCartesianPoints(), cartesianPoints.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecLocalGeometrySpecification has no cartesianPoints.
* @return this assertion object.
* @throws AssertionError if the actual VecLocalGeometrySpecification's cartesianPoints is not empty.
*/
public S hasNoCartesianPoints() {
// check that actual VecLocalGeometrySpecification 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 cartesianPoints but had :\n <%s>";
// check
if (actual.getCartesianPoints().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getCartesianPoints());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecLocalGeometrySpecification's positions contains the given VecLocalPosition elements.
* @param positions the given elements that should be contained in actual VecLocalGeometrySpecification's positions.
* @return this assertion object.
* @throws AssertionError if the actual VecLocalGeometrySpecification's positions does not contain all given VecLocalPosition elements.
*/
public S hasPositions(VecLocalPosition... positions) {
// check that actual VecLocalGeometrySpecification we want to make assertions on is not null.
isNotNull();
// check that given VecLocalPosition varargs is not null.
if (positions == null) failWithMessage("Expecting positions 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.getPositions(), positions);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecLocalGeometrySpecification's positions contains the given VecLocalPosition elements in Collection.
* @param positions the given elements that should be contained in actual VecLocalGeometrySpecification's positions.
* @return this assertion object.
* @throws AssertionError if the actual VecLocalGeometrySpecification's positions does not contain all given VecLocalPosition elements.
*/
public S hasPositions(java.util.Collection extends VecLocalPosition> positions) {
// check that actual VecLocalGeometrySpecification we want to make assertions on is not null.
isNotNull();
// check that given VecLocalPosition collection is not null.
if (positions == null) {
failWithMessage("Expecting positions 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.getPositions(), positions.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecLocalGeometrySpecification's positions contains only the given VecLocalPosition elements and nothing else in whatever order.
* @param positions the given elements that should be contained in actual VecLocalGeometrySpecification's positions.
* @return this assertion object.
* @throws AssertionError if the actual VecLocalGeometrySpecification's positions does not contain all given VecLocalPosition elements.
*/
public S hasOnlyPositions(VecLocalPosition... positions) {
// check that actual VecLocalGeometrySpecification we want to make assertions on is not null.
isNotNull();
// check that given VecLocalPosition varargs is not null.
if (positions == null) failWithMessage("Expecting positions 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.getPositions(), positions);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecLocalGeometrySpecification's positions contains only the given VecLocalPosition elements in Collection and nothing else in whatever order.
* @param positions the given elements that should be contained in actual VecLocalGeometrySpecification's positions.
* @return this assertion object.
* @throws AssertionError if the actual VecLocalGeometrySpecification's positions does not contain all given VecLocalPosition elements.
*/
public S hasOnlyPositions(java.util.Collection extends VecLocalPosition> positions) {
// check that actual VecLocalGeometrySpecification we want to make assertions on is not null.
isNotNull();
// check that given VecLocalPosition collection is not null.
if (positions == null) {
failWithMessage("Expecting positions 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.getPositions(), positions.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecLocalGeometrySpecification's positions does not contain the given VecLocalPosition elements.
*
* @param positions the given elements that should not be in actual VecLocalGeometrySpecification's positions.
* @return this assertion object.
* @throws AssertionError if the actual VecLocalGeometrySpecification's positions contains any given VecLocalPosition elements.
*/
public S doesNotHavePositions(VecLocalPosition... positions) {
// check that actual VecLocalGeometrySpecification we want to make assertions on is not null.
isNotNull();
// check that given VecLocalPosition varargs is not null.
if (positions == null) failWithMessage("Expecting positions parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getPositions(), positions);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecLocalGeometrySpecification's positions does not contain the given VecLocalPosition elements in Collection.
*
* @param positions the given elements that should not be in actual VecLocalGeometrySpecification's positions.
* @return this assertion object.
* @throws AssertionError if the actual VecLocalGeometrySpecification's positions contains any given VecLocalPosition elements.
*/
public S doesNotHavePositions(java.util.Collection extends VecLocalPosition> positions) {
// check that actual VecLocalGeometrySpecification we want to make assertions on is not null.
isNotNull();
// check that given VecLocalPosition collection is not null.
if (positions == null) {
failWithMessage("Expecting positions 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.getPositions(), positions.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecLocalGeometrySpecification has no positions.
* @return this assertion object.
* @throws AssertionError if the actual VecLocalGeometrySpecification's positions is not empty.
*/
public S hasNoPositions() {
// check that actual VecLocalGeometrySpecification 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 positions but had :\n <%s>";
// check
if (actual.getPositions().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getPositions());
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy