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