
com.foursoft.vecmodel.vec120.AbstractVecHarnessDrawingSpecification2DAssert 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;
/**
* Abstract base class for {@link VecHarnessDrawingSpecification2D} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecHarnessDrawingSpecification2DAssert, A extends VecHarnessDrawingSpecification2D> extends AbstractVecSpecificationAssert {
/**
* Creates a new {@link AbstractVecHarnessDrawingSpecification2DAssert}
to make assertions on actual VecHarnessDrawingSpecification2D.
* @param actual the VecHarnessDrawingSpecification2D we want to make assertions on.
*/
protected AbstractVecHarnessDrawingSpecification2DAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecHarnessDrawingSpecification2D's buildingBlockPositionings contains the given VecBuildingBlockPositioning2D elements.
* @param buildingBlockPositionings the given elements that should be contained in actual VecHarnessDrawingSpecification2D's buildingBlockPositionings.
* @return this assertion object.
* @throws AssertionError if the actual VecHarnessDrawingSpecification2D's buildingBlockPositionings does not contain all given VecBuildingBlockPositioning2D elements.
*/
public S hasBuildingBlockPositionings(VecBuildingBlockPositioning2D... buildingBlockPositionings) {
// check that actual VecHarnessDrawingSpecification2D we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockPositioning2D 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 VecHarnessDrawingSpecification2D's buildingBlockPositionings contains the given VecBuildingBlockPositioning2D elements in Collection.
* @param buildingBlockPositionings the given elements that should be contained in actual VecHarnessDrawingSpecification2D's buildingBlockPositionings.
* @return this assertion object.
* @throws AssertionError if the actual VecHarnessDrawingSpecification2D's buildingBlockPositionings does not contain all given VecBuildingBlockPositioning2D elements.
*/
public S hasBuildingBlockPositionings(java.util.Collection extends VecBuildingBlockPositioning2D> buildingBlockPositionings) {
// check that actual VecHarnessDrawingSpecification2D we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockPositioning2D 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 VecHarnessDrawingSpecification2D's buildingBlockPositionings contains only the given VecBuildingBlockPositioning2D elements and nothing else in whatever order.
* @param buildingBlockPositionings the given elements that should be contained in actual VecHarnessDrawingSpecification2D's buildingBlockPositionings.
* @return this assertion object.
* @throws AssertionError if the actual VecHarnessDrawingSpecification2D's buildingBlockPositionings does not contain all given VecBuildingBlockPositioning2D elements.
*/
public S hasOnlyBuildingBlockPositionings(VecBuildingBlockPositioning2D... buildingBlockPositionings) {
// check that actual VecHarnessDrawingSpecification2D we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockPositioning2D 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 VecHarnessDrawingSpecification2D's buildingBlockPositionings contains only the given VecBuildingBlockPositioning2D elements in Collection and nothing else in whatever order.
* @param buildingBlockPositionings the given elements that should be contained in actual VecHarnessDrawingSpecification2D's buildingBlockPositionings.
* @return this assertion object.
* @throws AssertionError if the actual VecHarnessDrawingSpecification2D's buildingBlockPositionings does not contain all given VecBuildingBlockPositioning2D elements.
*/
public S hasOnlyBuildingBlockPositionings(java.util.Collection extends VecBuildingBlockPositioning2D> buildingBlockPositionings) {
// check that actual VecHarnessDrawingSpecification2D we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockPositioning2D 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 VecHarnessDrawingSpecification2D's buildingBlockPositionings does not contain the given VecBuildingBlockPositioning2D elements.
*
* @param buildingBlockPositionings the given elements that should not be in actual VecHarnessDrawingSpecification2D's buildingBlockPositionings.
* @return this assertion object.
* @throws AssertionError if the actual VecHarnessDrawingSpecification2D's buildingBlockPositionings contains any given VecBuildingBlockPositioning2D elements.
*/
public S doesNotHaveBuildingBlockPositionings(VecBuildingBlockPositioning2D... buildingBlockPositionings) {
// check that actual VecHarnessDrawingSpecification2D we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockPositioning2D 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 VecHarnessDrawingSpecification2D's buildingBlockPositionings does not contain the given VecBuildingBlockPositioning2D elements in Collection.
*
* @param buildingBlockPositionings the given elements that should not be in actual VecHarnessDrawingSpecification2D's buildingBlockPositionings.
* @return this assertion object.
* @throws AssertionError if the actual VecHarnessDrawingSpecification2D's buildingBlockPositionings contains any given VecBuildingBlockPositioning2D elements.
*/
public S doesNotHaveBuildingBlockPositionings(java.util.Collection extends VecBuildingBlockPositioning2D> buildingBlockPositionings) {
// check that actual VecHarnessDrawingSpecification2D we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockPositioning2D 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 VecHarnessDrawingSpecification2D has no buildingBlockPositionings.
* @return this assertion object.
* @throws AssertionError if the actual VecHarnessDrawingSpecification2D's buildingBlockPositionings is not empty.
*/
public S hasNoBuildingBlockPositionings() {
// check that actual VecHarnessDrawingSpecification2D 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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy