
com.foursoft.vecmodel.vec120.AbstractVecHarnessGeometrySpecification3DAssert 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 VecHarnessGeometrySpecification3D} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecHarnessGeometrySpecification3DAssert, A extends VecHarnessGeometrySpecification3D> extends AbstractVecSpecificationAssert {
/**
* Creates a new {@link AbstractVecHarnessGeometrySpecification3DAssert}
to make assertions on actual VecHarnessGeometrySpecification3D.
* @param actual the VecHarnessGeometrySpecification3D we want to make assertions on.
*/
protected AbstractVecHarnessGeometrySpecification3DAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecHarnessGeometrySpecification3D's buildingBlockPositionings contains the given VecBuildingBlockPositioning3D elements.
* @param buildingBlockPositionings the given elements that should be contained in actual VecHarnessGeometrySpecification3D's buildingBlockPositionings.
* @return this assertion object.
* @throws AssertionError if the actual VecHarnessGeometrySpecification3D's buildingBlockPositionings does not contain all given VecBuildingBlockPositioning3D elements.
*/
public S hasBuildingBlockPositionings(VecBuildingBlockPositioning3D... buildingBlockPositionings) {
// check that actual VecHarnessGeometrySpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockPositioning3D varargs is not null.
if (buildingBlockPositionings == null) failWithMessage("Expecting buildingBlockPositionings 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.getBuildingBlockPositionings(), buildingBlockPositionings);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecHarnessGeometrySpecification3D's buildingBlockPositionings contains the given VecBuildingBlockPositioning3D elements in Collection.
* @param buildingBlockPositionings the given elements that should be contained in actual VecHarnessGeometrySpecification3D's buildingBlockPositionings.
* @return this assertion object.
* @throws AssertionError if the actual VecHarnessGeometrySpecification3D's buildingBlockPositionings does not contain all given VecBuildingBlockPositioning3D elements.
*/
public S hasBuildingBlockPositionings(java.util.Collection extends VecBuildingBlockPositioning3D> buildingBlockPositionings) {
// check that actual VecHarnessGeometrySpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockPositioning3D collection is not null.
if (buildingBlockPositionings == null) {
failWithMessage("Expecting buildingBlockPositionings 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.getBuildingBlockPositionings(), buildingBlockPositionings.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecHarnessGeometrySpecification3D's buildingBlockPositionings contains only the given VecBuildingBlockPositioning3D elements and nothing else in whatever order.
* @param buildingBlockPositionings the given elements that should be contained in actual VecHarnessGeometrySpecification3D's buildingBlockPositionings.
* @return this assertion object.
* @throws AssertionError if the actual VecHarnessGeometrySpecification3D's buildingBlockPositionings does not contain all given VecBuildingBlockPositioning3D elements.
*/
public S hasOnlyBuildingBlockPositionings(VecBuildingBlockPositioning3D... buildingBlockPositionings) {
// check that actual VecHarnessGeometrySpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockPositioning3D varargs is not null.
if (buildingBlockPositionings == null) failWithMessage("Expecting buildingBlockPositionings 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.getBuildingBlockPositionings(), buildingBlockPositionings);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecHarnessGeometrySpecification3D's buildingBlockPositionings contains only the given VecBuildingBlockPositioning3D elements in Collection and nothing else in whatever order.
* @param buildingBlockPositionings the given elements that should be contained in actual VecHarnessGeometrySpecification3D's buildingBlockPositionings.
* @return this assertion object.
* @throws AssertionError if the actual VecHarnessGeometrySpecification3D's buildingBlockPositionings does not contain all given VecBuildingBlockPositioning3D elements.
*/
public S hasOnlyBuildingBlockPositionings(java.util.Collection extends VecBuildingBlockPositioning3D> buildingBlockPositionings) {
// check that actual VecHarnessGeometrySpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockPositioning3D collection is not null.
if (buildingBlockPositionings == null) {
failWithMessage("Expecting buildingBlockPositionings 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.getBuildingBlockPositionings(), buildingBlockPositionings.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecHarnessGeometrySpecification3D's buildingBlockPositionings does not contain the given VecBuildingBlockPositioning3D elements.
*
* @param buildingBlockPositionings the given elements that should not be in actual VecHarnessGeometrySpecification3D's buildingBlockPositionings.
* @return this assertion object.
* @throws AssertionError if the actual VecHarnessGeometrySpecification3D's buildingBlockPositionings contains any given VecBuildingBlockPositioning3D elements.
*/
public S doesNotHaveBuildingBlockPositionings(VecBuildingBlockPositioning3D... buildingBlockPositionings) {
// check that actual VecHarnessGeometrySpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockPositioning3D varargs is not null.
if (buildingBlockPositionings == null) failWithMessage("Expecting buildingBlockPositionings parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getBuildingBlockPositionings(), buildingBlockPositionings);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecHarnessGeometrySpecification3D's buildingBlockPositionings does not contain the given VecBuildingBlockPositioning3D elements in Collection.
*
* @param buildingBlockPositionings the given elements that should not be in actual VecHarnessGeometrySpecification3D's buildingBlockPositionings.
* @return this assertion object.
* @throws AssertionError if the actual VecHarnessGeometrySpecification3D's buildingBlockPositionings contains any given VecBuildingBlockPositioning3D elements.
*/
public S doesNotHaveBuildingBlockPositionings(java.util.Collection extends VecBuildingBlockPositioning3D> buildingBlockPositionings) {
// check that actual VecHarnessGeometrySpecification3D we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockPositioning3D collection is not null.
if (buildingBlockPositionings == null) {
failWithMessage("Expecting buildingBlockPositionings 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.getBuildingBlockPositionings(), buildingBlockPositionings.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecHarnessGeometrySpecification3D has no buildingBlockPositionings.
* @return this assertion object.
* @throws AssertionError if the actual VecHarnessGeometrySpecification3D's buildingBlockPositionings is not empty.
*/
public S hasNoBuildingBlockPositionings() {
// check that actual VecHarnessGeometrySpecification3D 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 buildingBlockPositionings but had :\n <%s>";
// check
if (actual.getBuildingBlockPositionings().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getBuildingBlockPositionings());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecHarnessGeometrySpecification3D's type is equal to the given one.
* @param type the given type to compare the actual VecHarnessGeometrySpecification3D's type to.
* @return this assertion object.
* @throws AssertionError - if the actual VecHarnessGeometrySpecification3D's type is not equal to the given one.
*/
public S hasType(String type) {
// check that actual VecHarnessGeometrySpecification3D 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