
com.foursoft.vecmodel.vec120.AbstractVecMultiCavitySealSpecificationAssert 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 VecMultiCavitySealSpecification} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecMultiCavitySealSpecificationAssert, A extends VecMultiCavitySealSpecification> extends AbstractVecCavitySealSpecificationAssert {
/**
* Creates a new {@link AbstractVecMultiCavitySealSpecificationAssert}
to make assertions on actual VecMultiCavitySealSpecification.
* @param actual the VecMultiCavitySealSpecification we want to make assertions on.
*/
protected AbstractVecMultiCavitySealSpecificationAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecMultiCavitySealSpecification's assignments contains the given VecOpenCavitiesAssignment elements.
* @param assignments the given elements that should be contained in actual VecMultiCavitySealSpecification's assignments.
* @return this assertion object.
* @throws AssertionError if the actual VecMultiCavitySealSpecification's assignments does not contain all given VecOpenCavitiesAssignment elements.
*/
public S hasAssignments(VecOpenCavitiesAssignment... assignments) {
// check that actual VecMultiCavitySealSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecOpenCavitiesAssignment varargs is not null.
if (assignments == null) failWithMessage("Expecting assignments 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.getAssignments(), assignments);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecMultiCavitySealSpecification's assignments contains the given VecOpenCavitiesAssignment elements in Collection.
* @param assignments the given elements that should be contained in actual VecMultiCavitySealSpecification's assignments.
* @return this assertion object.
* @throws AssertionError if the actual VecMultiCavitySealSpecification's assignments does not contain all given VecOpenCavitiesAssignment elements.
*/
public S hasAssignments(java.util.Collection extends VecOpenCavitiesAssignment> assignments) {
// check that actual VecMultiCavitySealSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecOpenCavitiesAssignment collection is not null.
if (assignments == null) {
failWithMessage("Expecting assignments 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.getAssignments(), assignments.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecMultiCavitySealSpecification's assignments contains only the given VecOpenCavitiesAssignment elements and nothing else in whatever order.
* @param assignments the given elements that should be contained in actual VecMultiCavitySealSpecification's assignments.
* @return this assertion object.
* @throws AssertionError if the actual VecMultiCavitySealSpecification's assignments does not contain all given VecOpenCavitiesAssignment elements.
*/
public S hasOnlyAssignments(VecOpenCavitiesAssignment... assignments) {
// check that actual VecMultiCavitySealSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecOpenCavitiesAssignment varargs is not null.
if (assignments == null) failWithMessage("Expecting assignments 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.getAssignments(), assignments);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecMultiCavitySealSpecification's assignments contains only the given VecOpenCavitiesAssignment elements in Collection and nothing else in whatever order.
* @param assignments the given elements that should be contained in actual VecMultiCavitySealSpecification's assignments.
* @return this assertion object.
* @throws AssertionError if the actual VecMultiCavitySealSpecification's assignments does not contain all given VecOpenCavitiesAssignment elements.
*/
public S hasOnlyAssignments(java.util.Collection extends VecOpenCavitiesAssignment> assignments) {
// check that actual VecMultiCavitySealSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecOpenCavitiesAssignment collection is not null.
if (assignments == null) {
failWithMessage("Expecting assignments 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.getAssignments(), assignments.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecMultiCavitySealSpecification's assignments does not contain the given VecOpenCavitiesAssignment elements.
*
* @param assignments the given elements that should not be in actual VecMultiCavitySealSpecification's assignments.
* @return this assertion object.
* @throws AssertionError if the actual VecMultiCavitySealSpecification's assignments contains any given VecOpenCavitiesAssignment elements.
*/
public S doesNotHaveAssignments(VecOpenCavitiesAssignment... assignments) {
// check that actual VecMultiCavitySealSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecOpenCavitiesAssignment varargs is not null.
if (assignments == null) failWithMessage("Expecting assignments parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getAssignments(), assignments);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecMultiCavitySealSpecification's assignments does not contain the given VecOpenCavitiesAssignment elements in Collection.
*
* @param assignments the given elements that should not be in actual VecMultiCavitySealSpecification's assignments.
* @return this assertion object.
* @throws AssertionError if the actual VecMultiCavitySealSpecification's assignments contains any given VecOpenCavitiesAssignment elements.
*/
public S doesNotHaveAssignments(java.util.Collection extends VecOpenCavitiesAssignment> assignments) {
// check that actual VecMultiCavitySealSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecOpenCavitiesAssignment collection is not null.
if (assignments == null) {
failWithMessage("Expecting assignments 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.getAssignments(), assignments.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecMultiCavitySealSpecification has no assignments.
* @return this assertion object.
* @throws AssertionError if the actual VecMultiCavitySealSpecification's assignments is not empty.
*/
public S hasNoAssignments() {
// check that actual VecMultiCavitySealSpecification 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 assignments but had :\n <%s>";
// check
if (actual.getAssignments().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getAssignments());
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy