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