
com.foursoft.vecmodel.vec120.AbstractVecMultiCavityPlugSpecificationAssert 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 VecMultiCavityPlugSpecification} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecMultiCavityPlugSpecificationAssert, A extends VecMultiCavityPlugSpecification> extends AbstractVecCavityPlugSpecificationAssert {
/**
* Creates a new {@link AbstractVecMultiCavityPlugSpecificationAssert}
to make assertions on actual VecMultiCavityPlugSpecification.
* @param actual the VecMultiCavityPlugSpecification we want to make assertions on.
*/
protected AbstractVecMultiCavityPlugSpecificationAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecMultiCavityPlugSpecification's assignments contains the given VecSealedCavitiesAssignment elements.
* @param assignments the given elements that should be contained in actual VecMultiCavityPlugSpecification's assignments.
* @return this assertion object.
* @throws AssertionError if the actual VecMultiCavityPlugSpecification's assignments does not contain all given VecSealedCavitiesAssignment elements.
*/
public S hasAssignments(VecSealedCavitiesAssignment... assignments) {
// check that actual VecMultiCavityPlugSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSealedCavitiesAssignment 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 VecMultiCavityPlugSpecification's assignments contains the given VecSealedCavitiesAssignment elements in Collection.
* @param assignments the given elements that should be contained in actual VecMultiCavityPlugSpecification's assignments.
* @return this assertion object.
* @throws AssertionError if the actual VecMultiCavityPlugSpecification's assignments does not contain all given VecSealedCavitiesAssignment elements.
*/
public S hasAssignments(java.util.Collection extends VecSealedCavitiesAssignment> assignments) {
// check that actual VecMultiCavityPlugSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSealedCavitiesAssignment 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 VecMultiCavityPlugSpecification's assignments contains only the given VecSealedCavitiesAssignment elements and nothing else in whatever order.
* @param assignments the given elements that should be contained in actual VecMultiCavityPlugSpecification's assignments.
* @return this assertion object.
* @throws AssertionError if the actual VecMultiCavityPlugSpecification's assignments does not contain all given VecSealedCavitiesAssignment elements.
*/
public S hasOnlyAssignments(VecSealedCavitiesAssignment... assignments) {
// check that actual VecMultiCavityPlugSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSealedCavitiesAssignment 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 VecMultiCavityPlugSpecification's assignments contains only the given VecSealedCavitiesAssignment elements in Collection and nothing else in whatever order.
* @param assignments the given elements that should be contained in actual VecMultiCavityPlugSpecification's assignments.
* @return this assertion object.
* @throws AssertionError if the actual VecMultiCavityPlugSpecification's assignments does not contain all given VecSealedCavitiesAssignment elements.
*/
public S hasOnlyAssignments(java.util.Collection extends VecSealedCavitiesAssignment> assignments) {
// check that actual VecMultiCavityPlugSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSealedCavitiesAssignment 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 VecMultiCavityPlugSpecification's assignments does not contain the given VecSealedCavitiesAssignment elements.
*
* @param assignments the given elements that should not be in actual VecMultiCavityPlugSpecification's assignments.
* @return this assertion object.
* @throws AssertionError if the actual VecMultiCavityPlugSpecification's assignments contains any given VecSealedCavitiesAssignment elements.
*/
public S doesNotHaveAssignments(VecSealedCavitiesAssignment... assignments) {
// check that actual VecMultiCavityPlugSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSealedCavitiesAssignment 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 VecMultiCavityPlugSpecification's assignments does not contain the given VecSealedCavitiesAssignment elements in Collection.
*
* @param assignments the given elements that should not be in actual VecMultiCavityPlugSpecification's assignments.
* @return this assertion object.
* @throws AssertionError if the actual VecMultiCavityPlugSpecification's assignments contains any given VecSealedCavitiesAssignment elements.
*/
public S doesNotHaveAssignments(java.util.Collection extends VecSealedCavitiesAssignment> assignments) {
// check that actual VecMultiCavityPlugSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSealedCavitiesAssignment 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 VecMultiCavityPlugSpecification has no assignments.
* @return this assertion object.
* @throws AssertionError if the actual VecMultiCavityPlugSpecification's assignments is not empty.
*/
public S hasNoAssignments() {
// check that actual VecMultiCavityPlugSpecification 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