
com.foursoft.vecmodel.vec120.AbstractVecOpenCavitiesAssignmentAssert 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.api.AbstractObjectAssert;
import org.assertj.core.internal.Iterables;
import org.assertj.core.util.Objects;
/**
* Abstract base class for {@link VecOpenCavitiesAssignment} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecOpenCavitiesAssignmentAssert, A extends VecOpenCavitiesAssignment> extends AbstractObjectAssert {
/**
* Creates a new {@link AbstractVecOpenCavitiesAssignmentAssert}
to make assertions on actual VecOpenCavitiesAssignment.
* @param actual the VecOpenCavitiesAssignment we want to make assertions on.
*/
protected AbstractVecOpenCavitiesAssignmentAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecOpenCavitiesAssignment's openCavities contains the given VecCavity elements.
* @param openCavities the given elements that should be contained in actual VecOpenCavitiesAssignment's openCavities.
* @return this assertion object.
* @throws AssertionError if the actual VecOpenCavitiesAssignment's openCavities does not contain all given VecCavity elements.
*/
public S hasOpenCavities(VecCavity... openCavities) {
// check that actual VecOpenCavitiesAssignment we want to make assertions on is not null.
isNotNull();
// check that given VecCavity varargs is not null.
if (openCavities == null) failWithMessage("Expecting openCavities 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.getOpenCavities(), openCavities);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOpenCavitiesAssignment's openCavities contains the given VecCavity elements in Collection.
* @param openCavities the given elements that should be contained in actual VecOpenCavitiesAssignment's openCavities.
* @return this assertion object.
* @throws AssertionError if the actual VecOpenCavitiesAssignment's openCavities does not contain all given VecCavity elements.
*/
public S hasOpenCavities(java.util.Collection extends VecCavity> openCavities) {
// check that actual VecOpenCavitiesAssignment we want to make assertions on is not null.
isNotNull();
// check that given VecCavity collection is not null.
if (openCavities == null) {
failWithMessage("Expecting openCavities 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.getOpenCavities(), openCavities.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOpenCavitiesAssignment's openCavities contains only the given VecCavity elements and nothing else in whatever order.
* @param openCavities the given elements that should be contained in actual VecOpenCavitiesAssignment's openCavities.
* @return this assertion object.
* @throws AssertionError if the actual VecOpenCavitiesAssignment's openCavities does not contain all given VecCavity elements.
*/
public S hasOnlyOpenCavities(VecCavity... openCavities) {
// check that actual VecOpenCavitiesAssignment we want to make assertions on is not null.
isNotNull();
// check that given VecCavity varargs is not null.
if (openCavities == null) failWithMessage("Expecting openCavities 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.getOpenCavities(), openCavities);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOpenCavitiesAssignment's openCavities contains only the given VecCavity elements in Collection and nothing else in whatever order.
* @param openCavities the given elements that should be contained in actual VecOpenCavitiesAssignment's openCavities.
* @return this assertion object.
* @throws AssertionError if the actual VecOpenCavitiesAssignment's openCavities does not contain all given VecCavity elements.
*/
public S hasOnlyOpenCavities(java.util.Collection extends VecCavity> openCavities) {
// check that actual VecOpenCavitiesAssignment we want to make assertions on is not null.
isNotNull();
// check that given VecCavity collection is not null.
if (openCavities == null) {
failWithMessage("Expecting openCavities 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.getOpenCavities(), openCavities.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOpenCavitiesAssignment's openCavities does not contain the given VecCavity elements.
*
* @param openCavities the given elements that should not be in actual VecOpenCavitiesAssignment's openCavities.
* @return this assertion object.
* @throws AssertionError if the actual VecOpenCavitiesAssignment's openCavities contains any given VecCavity elements.
*/
public S doesNotHaveOpenCavities(VecCavity... openCavities) {
// check that actual VecOpenCavitiesAssignment we want to make assertions on is not null.
isNotNull();
// check that given VecCavity varargs is not null.
if (openCavities == null) failWithMessage("Expecting openCavities parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getOpenCavities(), openCavities);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOpenCavitiesAssignment's openCavities does not contain the given VecCavity elements in Collection.
*
* @param openCavities the given elements that should not be in actual VecOpenCavitiesAssignment's openCavities.
* @return this assertion object.
* @throws AssertionError if the actual VecOpenCavitiesAssignment's openCavities contains any given VecCavity elements.
*/
public S doesNotHaveOpenCavities(java.util.Collection extends VecCavity> openCavities) {
// check that actual VecOpenCavitiesAssignment we want to make assertions on is not null.
isNotNull();
// check that given VecCavity collection is not null.
if (openCavities == null) {
failWithMessage("Expecting openCavities 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.getOpenCavities(), openCavities.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOpenCavitiesAssignment has no openCavities.
* @return this assertion object.
* @throws AssertionError if the actual VecOpenCavitiesAssignment's openCavities is not empty.
*/
public S hasNoOpenCavities() {
// check that actual VecOpenCavitiesAssignment 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 openCavities but had :\n <%s>";
// check
if (actual.getOpenCavities().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getOpenCavities());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOpenCavitiesAssignment's parentMultiCavitySealSpecification is equal to the given one.
* @param parentMultiCavitySealSpecification the given parentMultiCavitySealSpecification to compare the actual VecOpenCavitiesAssignment's parentMultiCavitySealSpecification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecOpenCavitiesAssignment's parentMultiCavitySealSpecification is not equal to the given one.
*/
public S hasParentMultiCavitySealSpecification(VecMultiCavitySealSpecification parentMultiCavitySealSpecification) {
// check that actual VecOpenCavitiesAssignment we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentMultiCavitySealSpecification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecMultiCavitySealSpecification actualParentMultiCavitySealSpecification = actual.getParentMultiCavitySealSpecification();
if (!Objects.areEqual(actualParentMultiCavitySealSpecification, parentMultiCavitySealSpecification)) {
failWithMessage(assertjErrorMessage, actual, parentMultiCavitySealSpecification, actualParentMultiCavitySealSpecification);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOpenCavitiesAssignment's xmlId is equal to the given one.
* @param xmlId the given xmlId to compare the actual VecOpenCavitiesAssignment's xmlId to.
* @return this assertion object.
* @throws AssertionError - if the actual VecOpenCavitiesAssignment's xmlId is not equal to the given one.
*/
public S hasXmlId(String xmlId) {
// check that actual VecOpenCavitiesAssignment we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting xmlId of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualXmlId = actual.getXmlId();
if (!Objects.areEqual(actualXmlId, xmlId)) {
failWithMessage(assertjErrorMessage, actual, xmlId, actualXmlId);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy