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