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