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