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