
com.foursoft.vecmodel.vec120.AbstractVecBuildingBlockSpecification3DAssert 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 VecBuildingBlockSpecification3D} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecBuildingBlockSpecification3DAssert, A extends VecBuildingBlockSpecification3D> extends AbstractVecSpecificationAssert {
/**
* Creates a new {@link AbstractVecBuildingBlockSpecification3DAssert}
to make assertions on actual VecBuildingBlockSpecification3D.
* @param actual the VecBuildingBlockSpecification3D we want to make assertions on.
*/
protected AbstractVecBuildingBlockSpecification3DAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's baseUnit is equal to the given one.
* @param baseUnit the given baseUnit to compare the actual VecBuildingBlockSpecification3D's baseUnit to.
* @return this assertion object.
* @throws AssertionError - if the actual VecBuildingBlockSpecification3D's baseUnit is not equal to the given one.
*/
public S hasBaseUnit(VecUnit baseUnit) {
// check that actual VecBuildingBlockSpecification3D 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 VecBuildingBlockSpecification3D's cartesianPoints contains the given VecCartesianPoint3D elements.
* @param cartesianPoints the given elements that should be contained in actual VecBuildingBlockSpecification3D's cartesianPoints.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's cartesianPoints does not contain all given VecCartesianPoint3D elements.
*/
public S hasCartesianPoints(VecCartesianPoint3D... cartesianPoints) {
// check that actual VecBuildingBlockSpecification3D 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 VecBuildingBlockSpecification3D's cartesianPoints contains the given VecCartesianPoint3D elements in Collection.
* @param cartesianPoints the given elements that should be contained in actual VecBuildingBlockSpecification3D's cartesianPoints.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's cartesianPoints does not contain all given VecCartesianPoint3D elements.
*/
public S hasCartesianPoints(java.util.Collection extends VecCartesianPoint3D> cartesianPoints) {
// check that actual VecBuildingBlockSpecification3D 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 VecBuildingBlockSpecification3D'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 VecBuildingBlockSpecification3D's cartesianPoints.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's cartesianPoints does not contain all given VecCartesianPoint3D elements.
*/
public S hasOnlyCartesianPoints(VecCartesianPoint3D... cartesianPoints) {
// check that actual VecBuildingBlockSpecification3D 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 VecBuildingBlockSpecification3D'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 VecBuildingBlockSpecification3D's cartesianPoints.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's cartesianPoints does not contain all given VecCartesianPoint3D elements.
*/
public S hasOnlyCartesianPoints(java.util.Collection extends VecCartesianPoint3D> cartesianPoints) {
// check that actual VecBuildingBlockSpecification3D 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 VecBuildingBlockSpecification3D's cartesianPoints does not contain the given VecCartesianPoint3D elements.
*
* @param cartesianPoints the given elements that should not be in actual VecBuildingBlockSpecification3D's cartesianPoints.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's cartesianPoints contains any given VecCartesianPoint3D elements.
*/
public S doesNotHaveCartesianPoints(VecCartesianPoint3D... cartesianPoints) {
// check that actual VecBuildingBlockSpecification3D 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 VecBuildingBlockSpecification3D's cartesianPoints does not contain the given VecCartesianPoint3D elements in Collection.
*
* @param cartesianPoints the given elements that should not be in actual VecBuildingBlockSpecification3D's cartesianPoints.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's cartesianPoints contains any given VecCartesianPoint3D elements.
*/
public S doesNotHaveCartesianPoints(java.util.Collection extends VecCartesianPoint3D> cartesianPoints) {
// check that actual VecBuildingBlockSpecification3D 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 VecBuildingBlockSpecification3D has no cartesianPoints.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's cartesianPoints is not empty.
*/
public S hasNoCartesianPoints() {
// check that actual VecBuildingBlockSpecification3D 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 VecBuildingBlockSpecification3D's geometryNodes contains the given VecGeometryNode3D elements.
* @param geometryNodes the given elements that should be contained in actual VecBuildingBlockSpecification3D's geometryNodes.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's geometryNodes does not contain all given VecGeometryNode3D elements.
*/
public S hasGeometryNodes(VecGeometryNode3D... geometryNodes) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecGeometryNode3D varargs is not null.
if (geometryNodes == null) failWithMessage("Expecting geometryNodes 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.getGeometryNodes(), geometryNodes);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's geometryNodes contains the given VecGeometryNode3D elements in Collection.
* @param geometryNodes the given elements that should be contained in actual VecBuildingBlockSpecification3D's geometryNodes.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's geometryNodes does not contain all given VecGeometryNode3D elements.
*/
public S hasGeometryNodes(java.util.Collection extends VecGeometryNode3D> geometryNodes) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecGeometryNode3D collection is not null.
if (geometryNodes == null) {
failWithMessage("Expecting geometryNodes 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.getGeometryNodes(), geometryNodes.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's geometryNodes contains only the given VecGeometryNode3D elements and nothing else in whatever order.
* @param geometryNodes the given elements that should be contained in actual VecBuildingBlockSpecification3D's geometryNodes.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's geometryNodes does not contain all given VecGeometryNode3D elements.
*/
public S hasOnlyGeometryNodes(VecGeometryNode3D... geometryNodes) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecGeometryNode3D varargs is not null.
if (geometryNodes == null) failWithMessage("Expecting geometryNodes 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.getGeometryNodes(), geometryNodes);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's geometryNodes contains only the given VecGeometryNode3D elements in Collection and nothing else in whatever order.
* @param geometryNodes the given elements that should be contained in actual VecBuildingBlockSpecification3D's geometryNodes.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's geometryNodes does not contain all given VecGeometryNode3D elements.
*/
public S hasOnlyGeometryNodes(java.util.Collection extends VecGeometryNode3D> geometryNodes) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecGeometryNode3D collection is not null.
if (geometryNodes == null) {
failWithMessage("Expecting geometryNodes 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.getGeometryNodes(), geometryNodes.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's geometryNodes does not contain the given VecGeometryNode3D elements.
*
* @param geometryNodes the given elements that should not be in actual VecBuildingBlockSpecification3D's geometryNodes.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's geometryNodes contains any given VecGeometryNode3D elements.
*/
public S doesNotHaveGeometryNodes(VecGeometryNode3D... geometryNodes) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecGeometryNode3D varargs is not null.
if (geometryNodes == null) failWithMessage("Expecting geometryNodes parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getGeometryNodes(), geometryNodes);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's geometryNodes does not contain the given VecGeometryNode3D elements in Collection.
*
* @param geometryNodes the given elements that should not be in actual VecBuildingBlockSpecification3D's geometryNodes.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's geometryNodes contains any given VecGeometryNode3D elements.
*/
public S doesNotHaveGeometryNodes(java.util.Collection extends VecGeometryNode3D> geometryNodes) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecGeometryNode3D collection is not null.
if (geometryNodes == null) {
failWithMessage("Expecting geometryNodes 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.getGeometryNodes(), geometryNodes.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D has no geometryNodes.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's geometryNodes is not empty.
*/
public S hasNoGeometryNodes() {
// check that actual VecBuildingBlockSpecification3D 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 geometryNodes but had :\n <%s>";
// check
if (actual.getGeometryNodes().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getGeometryNodes());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's geometrySegments contains the given VecGeometrySegment3D elements.
* @param geometrySegments the given elements that should be contained in actual VecBuildingBlockSpecification3D's geometrySegments.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's geometrySegments does not contain all given VecGeometrySegment3D elements.
*/
public S hasGeometrySegments(VecGeometrySegment3D... geometrySegments) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecGeometrySegment3D varargs is not null.
if (geometrySegments == null) failWithMessage("Expecting geometrySegments 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.getGeometrySegments(), geometrySegments);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's geometrySegments contains the given VecGeometrySegment3D elements in Collection.
* @param geometrySegments the given elements that should be contained in actual VecBuildingBlockSpecification3D's geometrySegments.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's geometrySegments does not contain all given VecGeometrySegment3D elements.
*/
public S hasGeometrySegments(java.util.Collection extends VecGeometrySegment3D> geometrySegments) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecGeometrySegment3D collection is not null.
if (geometrySegments == null) {
failWithMessage("Expecting geometrySegments 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.getGeometrySegments(), geometrySegments.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's geometrySegments contains only the given VecGeometrySegment3D elements and nothing else in whatever order.
* @param geometrySegments the given elements that should be contained in actual VecBuildingBlockSpecification3D's geometrySegments.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's geometrySegments does not contain all given VecGeometrySegment3D elements.
*/
public S hasOnlyGeometrySegments(VecGeometrySegment3D... geometrySegments) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecGeometrySegment3D varargs is not null.
if (geometrySegments == null) failWithMessage("Expecting geometrySegments 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.getGeometrySegments(), geometrySegments);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's geometrySegments contains only the given VecGeometrySegment3D elements in Collection and nothing else in whatever order.
* @param geometrySegments the given elements that should be contained in actual VecBuildingBlockSpecification3D's geometrySegments.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's geometrySegments does not contain all given VecGeometrySegment3D elements.
*/
public S hasOnlyGeometrySegments(java.util.Collection extends VecGeometrySegment3D> geometrySegments) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecGeometrySegment3D collection is not null.
if (geometrySegments == null) {
failWithMessage("Expecting geometrySegments 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.getGeometrySegments(), geometrySegments.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's geometrySegments does not contain the given VecGeometrySegment3D elements.
*
* @param geometrySegments the given elements that should not be in actual VecBuildingBlockSpecification3D's geometrySegments.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's geometrySegments contains any given VecGeometrySegment3D elements.
*/
public S doesNotHaveGeometrySegments(VecGeometrySegment3D... geometrySegments) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecGeometrySegment3D varargs is not null.
if (geometrySegments == null) failWithMessage("Expecting geometrySegments parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getGeometrySegments(), geometrySegments);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's geometrySegments does not contain the given VecGeometrySegment3D elements in Collection.
*
* @param geometrySegments the given elements that should not be in actual VecBuildingBlockSpecification3D's geometrySegments.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's geometrySegments contains any given VecGeometrySegment3D elements.
*/
public S doesNotHaveGeometrySegments(java.util.Collection extends VecGeometrySegment3D> geometrySegments) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecGeometrySegment3D collection is not null.
if (geometrySegments == null) {
failWithMessage("Expecting geometrySegments 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.getGeometrySegments(), geometrySegments.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D has no geometrySegments.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's geometrySegments is not empty.
*/
public S hasNoGeometrySegments() {
// check that actual VecBuildingBlockSpecification3D 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 geometrySegments but had :\n <%s>";
// check
if (actual.getGeometrySegments().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getGeometrySegments());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's placedElementViewItem3Ds contains the given VecOccurrenceOrUsageViewItem3D elements.
* @param placedElementViewItem3Ds the given elements that should be contained in actual VecBuildingBlockSpecification3D's placedElementViewItem3Ds.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's placedElementViewItem3Ds does not contain all given VecOccurrenceOrUsageViewItem3D elements.
*/
public S hasPlacedElementViewItem3Ds(VecOccurrenceOrUsageViewItem3D... placedElementViewItem3Ds) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsageViewItem3D varargs is not null.
if (placedElementViewItem3Ds == null) failWithMessage("Expecting placedElementViewItem3Ds 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.getPlacedElementViewItem3Ds(), placedElementViewItem3Ds);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's placedElementViewItem3Ds contains the given VecOccurrenceOrUsageViewItem3D elements in Collection.
* @param placedElementViewItem3Ds the given elements that should be contained in actual VecBuildingBlockSpecification3D's placedElementViewItem3Ds.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's placedElementViewItem3Ds does not contain all given VecOccurrenceOrUsageViewItem3D elements.
*/
public S hasPlacedElementViewItem3Ds(java.util.Collection extends VecOccurrenceOrUsageViewItem3D> placedElementViewItem3Ds) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsageViewItem3D collection is not null.
if (placedElementViewItem3Ds == null) {
failWithMessage("Expecting placedElementViewItem3Ds 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.getPlacedElementViewItem3Ds(), placedElementViewItem3Ds.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's placedElementViewItem3Ds contains only the given VecOccurrenceOrUsageViewItem3D elements and nothing else in whatever order.
* @param placedElementViewItem3Ds the given elements that should be contained in actual VecBuildingBlockSpecification3D's placedElementViewItem3Ds.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's placedElementViewItem3Ds does not contain all given VecOccurrenceOrUsageViewItem3D elements.
*/
public S hasOnlyPlacedElementViewItem3Ds(VecOccurrenceOrUsageViewItem3D... placedElementViewItem3Ds) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsageViewItem3D varargs is not null.
if (placedElementViewItem3Ds == null) failWithMessage("Expecting placedElementViewItem3Ds 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.getPlacedElementViewItem3Ds(), placedElementViewItem3Ds);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's placedElementViewItem3Ds contains only the given VecOccurrenceOrUsageViewItem3D elements in Collection and nothing else in whatever order.
* @param placedElementViewItem3Ds the given elements that should be contained in actual VecBuildingBlockSpecification3D's placedElementViewItem3Ds.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's placedElementViewItem3Ds does not contain all given VecOccurrenceOrUsageViewItem3D elements.
*/
public S hasOnlyPlacedElementViewItem3Ds(java.util.Collection extends VecOccurrenceOrUsageViewItem3D> placedElementViewItem3Ds) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsageViewItem3D collection is not null.
if (placedElementViewItem3Ds == null) {
failWithMessage("Expecting placedElementViewItem3Ds 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.getPlacedElementViewItem3Ds(), placedElementViewItem3Ds.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's placedElementViewItem3Ds does not contain the given VecOccurrenceOrUsageViewItem3D elements.
*
* @param placedElementViewItem3Ds the given elements that should not be in actual VecBuildingBlockSpecification3D's placedElementViewItem3Ds.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's placedElementViewItem3Ds contains any given VecOccurrenceOrUsageViewItem3D elements.
*/
public S doesNotHavePlacedElementViewItem3Ds(VecOccurrenceOrUsageViewItem3D... placedElementViewItem3Ds) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsageViewItem3D varargs is not null.
if (placedElementViewItem3Ds == null) failWithMessage("Expecting placedElementViewItem3Ds parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getPlacedElementViewItem3Ds(), placedElementViewItem3Ds);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's placedElementViewItem3Ds does not contain the given VecOccurrenceOrUsageViewItem3D elements in Collection.
*
* @param placedElementViewItem3Ds the given elements that should not be in actual VecBuildingBlockSpecification3D's placedElementViewItem3Ds.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's placedElementViewItem3Ds contains any given VecOccurrenceOrUsageViewItem3D elements.
*/
public S doesNotHavePlacedElementViewItem3Ds(java.util.Collection extends VecOccurrenceOrUsageViewItem3D> placedElementViewItem3Ds) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsageViewItem3D collection is not null.
if (placedElementViewItem3Ds == null) {
failWithMessage("Expecting placedElementViewItem3Ds 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.getPlacedElementViewItem3Ds(), placedElementViewItem3Ds.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D has no placedElementViewItem3Ds.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's placedElementViewItem3Ds is not empty.
*/
public S hasNoPlacedElementViewItem3Ds() {
// check that actual VecBuildingBlockSpecification3D 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 placedElementViewItem3Ds but had :\n <%s>";
// check
if (actual.getPlacedElementViewItem3Ds().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getPlacedElementViewItem3Ds());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's refBuildingBlockPositioning3D contains the given VecBuildingBlockPositioning3D elements.
* @param refBuildingBlockPositioning3D the given elements that should be contained in actual VecBuildingBlockSpecification3D's refBuildingBlockPositioning3D.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's refBuildingBlockPositioning3D does not contain all given VecBuildingBlockPositioning3D elements.
*/
public S hasRefBuildingBlockPositioning3D(VecBuildingBlockPositioning3D... refBuildingBlockPositioning3D) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockPositioning3D varargs is not null.
if (refBuildingBlockPositioning3D == null) failWithMessage("Expecting refBuildingBlockPositioning3D 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.getRefBuildingBlockPositioning3D(), refBuildingBlockPositioning3D);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's refBuildingBlockPositioning3D contains the given VecBuildingBlockPositioning3D elements in Collection.
* @param refBuildingBlockPositioning3D the given elements that should be contained in actual VecBuildingBlockSpecification3D's refBuildingBlockPositioning3D.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's refBuildingBlockPositioning3D does not contain all given VecBuildingBlockPositioning3D elements.
*/
public S hasRefBuildingBlockPositioning3D(java.util.Collection extends VecBuildingBlockPositioning3D> refBuildingBlockPositioning3D) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockPositioning3D collection is not null.
if (refBuildingBlockPositioning3D == null) {
failWithMessage("Expecting refBuildingBlockPositioning3D 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.getRefBuildingBlockPositioning3D(), refBuildingBlockPositioning3D.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's refBuildingBlockPositioning3D contains only the given VecBuildingBlockPositioning3D elements and nothing else in whatever order.
* @param refBuildingBlockPositioning3D the given elements that should be contained in actual VecBuildingBlockSpecification3D's refBuildingBlockPositioning3D.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's refBuildingBlockPositioning3D does not contain all given VecBuildingBlockPositioning3D elements.
*/
public S hasOnlyRefBuildingBlockPositioning3D(VecBuildingBlockPositioning3D... refBuildingBlockPositioning3D) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockPositioning3D varargs is not null.
if (refBuildingBlockPositioning3D == null) failWithMessage("Expecting refBuildingBlockPositioning3D 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.getRefBuildingBlockPositioning3D(), refBuildingBlockPositioning3D);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's refBuildingBlockPositioning3D contains only the given VecBuildingBlockPositioning3D elements in Collection and nothing else in whatever order.
* @param refBuildingBlockPositioning3D the given elements that should be contained in actual VecBuildingBlockSpecification3D's refBuildingBlockPositioning3D.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's refBuildingBlockPositioning3D does not contain all given VecBuildingBlockPositioning3D elements.
*/
public S hasOnlyRefBuildingBlockPositioning3D(java.util.Collection extends VecBuildingBlockPositioning3D> refBuildingBlockPositioning3D) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockPositioning3D collection is not null.
if (refBuildingBlockPositioning3D == null) {
failWithMessage("Expecting refBuildingBlockPositioning3D 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.getRefBuildingBlockPositioning3D(), refBuildingBlockPositioning3D.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's refBuildingBlockPositioning3D does not contain the given VecBuildingBlockPositioning3D elements.
*
* @param refBuildingBlockPositioning3D the given elements that should not be in actual VecBuildingBlockSpecification3D's refBuildingBlockPositioning3D.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's refBuildingBlockPositioning3D contains any given VecBuildingBlockPositioning3D elements.
*/
public S doesNotHaveRefBuildingBlockPositioning3D(VecBuildingBlockPositioning3D... refBuildingBlockPositioning3D) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockPositioning3D varargs is not null.
if (refBuildingBlockPositioning3D == null) failWithMessage("Expecting refBuildingBlockPositioning3D parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefBuildingBlockPositioning3D(), refBuildingBlockPositioning3D);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's refBuildingBlockPositioning3D does not contain the given VecBuildingBlockPositioning3D elements in Collection.
*
* @param refBuildingBlockPositioning3D the given elements that should not be in actual VecBuildingBlockSpecification3D's refBuildingBlockPositioning3D.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's refBuildingBlockPositioning3D contains any given VecBuildingBlockPositioning3D elements.
*/
public S doesNotHaveRefBuildingBlockPositioning3D(java.util.Collection extends VecBuildingBlockPositioning3D> refBuildingBlockPositioning3D) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockPositioning3D collection is not null.
if (refBuildingBlockPositioning3D == null) {
failWithMessage("Expecting refBuildingBlockPositioning3D 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.getRefBuildingBlockPositioning3D(), refBuildingBlockPositioning3D.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D has no refBuildingBlockPositioning3D.
* @return this assertion object.
* @throws AssertionError if the actual VecBuildingBlockSpecification3D's refBuildingBlockPositioning3D is not empty.
*/
public S hasNoRefBuildingBlockPositioning3D() {
// check that actual VecBuildingBlockSpecification3D 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 refBuildingBlockPositioning3D but had :\n <%s>";
// check
if (actual.getRefBuildingBlockPositioning3D().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefBuildingBlockPositioning3D());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecBuildingBlockSpecification3D's topologyZone is equal to the given one.
* @param topologyZone the given topologyZone to compare the actual VecBuildingBlockSpecification3D's topologyZone to.
* @return this assertion object.
* @throws AssertionError - if the actual VecBuildingBlockSpecification3D's topologyZone is not equal to the given one.
*/
public S hasTopologyZone(VecTopologyZone topologyZone) {
// check that actual VecBuildingBlockSpecification3D we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting topologyZone of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecTopologyZone actualTopologyZone = actual.getTopologyZone();
if (!Objects.areEqual(actualTopologyZone, topologyZone)) {
failWithMessage(assertjErrorMessage, actual, topologyZone, actualTopologyZone);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy