
com.foursoft.vecmodel.vec120.AbstractVecPartOrUsageRelatedSpecificationAssert 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;
import org.assertj.core.util.Objects;
/**
* Abstract base class for {@link VecPartOrUsageRelatedSpecification} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecPartOrUsageRelatedSpecificationAssert, A extends VecPartOrUsageRelatedSpecification> extends AbstractVecSpecificationAssert {
/**
* Creates a new {@link AbstractVecPartOrUsageRelatedSpecificationAssert}
to make assertions on actual VecPartOrUsageRelatedSpecification.
* @param actual the VecPartOrUsageRelatedSpecification we want to make assertions on.
*/
protected AbstractVecPartOrUsageRelatedSpecificationAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecPartOrUsageRelatedSpecification's describedPart contains the given VecPartVersion elements.
* @param describedPart the given elements that should be contained in actual VecPartOrUsageRelatedSpecification's describedPart.
* @return this assertion object.
* @throws AssertionError if the actual VecPartOrUsageRelatedSpecification's describedPart does not contain all given VecPartVersion elements.
*/
public S hasDescribedPart(VecPartVersion... describedPart) {
// check that actual VecPartOrUsageRelatedSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecPartVersion varargs is not null.
if (describedPart == null) failWithMessage("Expecting describedPart 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.getDescribedPart(), describedPart);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPartOrUsageRelatedSpecification's describedPart contains the given VecPartVersion elements in Collection.
* @param describedPart the given elements that should be contained in actual VecPartOrUsageRelatedSpecification's describedPart.
* @return this assertion object.
* @throws AssertionError if the actual VecPartOrUsageRelatedSpecification's describedPart does not contain all given VecPartVersion elements.
*/
public S hasDescribedPart(java.util.Collection extends VecPartVersion> describedPart) {
// check that actual VecPartOrUsageRelatedSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecPartVersion collection is not null.
if (describedPart == null) {
failWithMessage("Expecting describedPart 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.getDescribedPart(), describedPart.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPartOrUsageRelatedSpecification's describedPart contains only the given VecPartVersion elements and nothing else in whatever order.
* @param describedPart the given elements that should be contained in actual VecPartOrUsageRelatedSpecification's describedPart.
* @return this assertion object.
* @throws AssertionError if the actual VecPartOrUsageRelatedSpecification's describedPart does not contain all given VecPartVersion elements.
*/
public S hasOnlyDescribedPart(VecPartVersion... describedPart) {
// check that actual VecPartOrUsageRelatedSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecPartVersion varargs is not null.
if (describedPart == null) failWithMessage("Expecting describedPart 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.getDescribedPart(), describedPart);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPartOrUsageRelatedSpecification's describedPart contains only the given VecPartVersion elements in Collection and nothing else in whatever order.
* @param describedPart the given elements that should be contained in actual VecPartOrUsageRelatedSpecification's describedPart.
* @return this assertion object.
* @throws AssertionError if the actual VecPartOrUsageRelatedSpecification's describedPart does not contain all given VecPartVersion elements.
*/
public S hasOnlyDescribedPart(java.util.Collection extends VecPartVersion> describedPart) {
// check that actual VecPartOrUsageRelatedSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecPartVersion collection is not null.
if (describedPart == null) {
failWithMessage("Expecting describedPart 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.getDescribedPart(), describedPart.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPartOrUsageRelatedSpecification's describedPart does not contain the given VecPartVersion elements.
*
* @param describedPart the given elements that should not be in actual VecPartOrUsageRelatedSpecification's describedPart.
* @return this assertion object.
* @throws AssertionError if the actual VecPartOrUsageRelatedSpecification's describedPart contains any given VecPartVersion elements.
*/
public S doesNotHaveDescribedPart(VecPartVersion... describedPart) {
// check that actual VecPartOrUsageRelatedSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecPartVersion varargs is not null.
if (describedPart == null) failWithMessage("Expecting describedPart parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getDescribedPart(), describedPart);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPartOrUsageRelatedSpecification's describedPart does not contain the given VecPartVersion elements in Collection.
*
* @param describedPart the given elements that should not be in actual VecPartOrUsageRelatedSpecification's describedPart.
* @return this assertion object.
* @throws AssertionError if the actual VecPartOrUsageRelatedSpecification's describedPart contains any given VecPartVersion elements.
*/
public S doesNotHaveDescribedPart(java.util.Collection extends VecPartVersion> describedPart) {
// check that actual VecPartOrUsageRelatedSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecPartVersion collection is not null.
if (describedPart == null) {
failWithMessage("Expecting describedPart 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.getDescribedPart(), describedPart.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPartOrUsageRelatedSpecification has no describedPart.
* @return this assertion object.
* @throws AssertionError if the actual VecPartOrUsageRelatedSpecification's describedPart is not empty.
*/
public S hasNoDescribedPart() {
// check that actual VecPartOrUsageRelatedSpecification 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 describedPart but had :\n <%s>";
// check
if (actual.getDescribedPart().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getDescribedPart());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPartOrUsageRelatedSpecification's refPartUsage contains the given VecPartUsage elements.
* @param refPartUsage the given elements that should be contained in actual VecPartOrUsageRelatedSpecification's refPartUsage.
* @return this assertion object.
* @throws AssertionError if the actual VecPartOrUsageRelatedSpecification's refPartUsage does not contain all given VecPartUsage elements.
*/
public S hasRefPartUsage(VecPartUsage... refPartUsage) {
// check that actual VecPartOrUsageRelatedSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecPartUsage varargs is not null.
if (refPartUsage == null) failWithMessage("Expecting refPartUsage 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.getRefPartUsage(), refPartUsage);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPartOrUsageRelatedSpecification's refPartUsage contains the given VecPartUsage elements in Collection.
* @param refPartUsage the given elements that should be contained in actual VecPartOrUsageRelatedSpecification's refPartUsage.
* @return this assertion object.
* @throws AssertionError if the actual VecPartOrUsageRelatedSpecification's refPartUsage does not contain all given VecPartUsage elements.
*/
public S hasRefPartUsage(java.util.Collection extends VecPartUsage> refPartUsage) {
// check that actual VecPartOrUsageRelatedSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecPartUsage collection is not null.
if (refPartUsage == null) {
failWithMessage("Expecting refPartUsage 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.getRefPartUsage(), refPartUsage.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPartOrUsageRelatedSpecification's refPartUsage contains only the given VecPartUsage elements and nothing else in whatever order.
* @param refPartUsage the given elements that should be contained in actual VecPartOrUsageRelatedSpecification's refPartUsage.
* @return this assertion object.
* @throws AssertionError if the actual VecPartOrUsageRelatedSpecification's refPartUsage does not contain all given VecPartUsage elements.
*/
public S hasOnlyRefPartUsage(VecPartUsage... refPartUsage) {
// check that actual VecPartOrUsageRelatedSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecPartUsage varargs is not null.
if (refPartUsage == null) failWithMessage("Expecting refPartUsage 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.getRefPartUsage(), refPartUsage);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPartOrUsageRelatedSpecification's refPartUsage contains only the given VecPartUsage elements in Collection and nothing else in whatever order.
* @param refPartUsage the given elements that should be contained in actual VecPartOrUsageRelatedSpecification's refPartUsage.
* @return this assertion object.
* @throws AssertionError if the actual VecPartOrUsageRelatedSpecification's refPartUsage does not contain all given VecPartUsage elements.
*/
public S hasOnlyRefPartUsage(java.util.Collection extends VecPartUsage> refPartUsage) {
// check that actual VecPartOrUsageRelatedSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecPartUsage collection is not null.
if (refPartUsage == null) {
failWithMessage("Expecting refPartUsage 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.getRefPartUsage(), refPartUsage.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPartOrUsageRelatedSpecification's refPartUsage does not contain the given VecPartUsage elements.
*
* @param refPartUsage the given elements that should not be in actual VecPartOrUsageRelatedSpecification's refPartUsage.
* @return this assertion object.
* @throws AssertionError if the actual VecPartOrUsageRelatedSpecification's refPartUsage contains any given VecPartUsage elements.
*/
public S doesNotHaveRefPartUsage(VecPartUsage... refPartUsage) {
// check that actual VecPartOrUsageRelatedSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecPartUsage varargs is not null.
if (refPartUsage == null) failWithMessage("Expecting refPartUsage parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefPartUsage(), refPartUsage);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPartOrUsageRelatedSpecification's refPartUsage does not contain the given VecPartUsage elements in Collection.
*
* @param refPartUsage the given elements that should not be in actual VecPartOrUsageRelatedSpecification's refPartUsage.
* @return this assertion object.
* @throws AssertionError if the actual VecPartOrUsageRelatedSpecification's refPartUsage contains any given VecPartUsage elements.
*/
public S doesNotHaveRefPartUsage(java.util.Collection extends VecPartUsage> refPartUsage) {
// check that actual VecPartOrUsageRelatedSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecPartUsage collection is not null.
if (refPartUsage == null) {
failWithMessage("Expecting refPartUsage 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.getRefPartUsage(), refPartUsage.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPartOrUsageRelatedSpecification has no refPartUsage.
* @return this assertion object.
* @throws AssertionError if the actual VecPartOrUsageRelatedSpecification's refPartUsage is not empty.
*/
public S hasNoRefPartUsage() {
// check that actual VecPartOrUsageRelatedSpecification 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 refPartUsage but had :\n <%s>";
// check
if (actual.getRefPartUsage().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefPartUsage());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPartOrUsageRelatedSpecification's refSpecificRole contains the given VecSpecificRole elements.
* @param refSpecificRole the given elements that should be contained in actual VecPartOrUsageRelatedSpecification's refSpecificRole.
* @return this assertion object.
* @throws AssertionError if the actual VecPartOrUsageRelatedSpecification's refSpecificRole does not contain all given VecSpecificRole elements.
*/
public S hasRefSpecificRole(VecSpecificRole... refSpecificRole) {
// check that actual VecPartOrUsageRelatedSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSpecificRole varargs is not null.
if (refSpecificRole == null) failWithMessage("Expecting refSpecificRole 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.getRefSpecificRole(), refSpecificRole);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPartOrUsageRelatedSpecification's refSpecificRole contains the given VecSpecificRole elements in Collection.
* @param refSpecificRole the given elements that should be contained in actual VecPartOrUsageRelatedSpecification's refSpecificRole.
* @return this assertion object.
* @throws AssertionError if the actual VecPartOrUsageRelatedSpecification's refSpecificRole does not contain all given VecSpecificRole elements.
*/
public S hasRefSpecificRole(java.util.Collection extends VecSpecificRole> refSpecificRole) {
// check that actual VecPartOrUsageRelatedSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSpecificRole collection is not null.
if (refSpecificRole == null) {
failWithMessage("Expecting refSpecificRole 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.getRefSpecificRole(), refSpecificRole.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPartOrUsageRelatedSpecification's refSpecificRole contains only the given VecSpecificRole elements and nothing else in whatever order.
* @param refSpecificRole the given elements that should be contained in actual VecPartOrUsageRelatedSpecification's refSpecificRole.
* @return this assertion object.
* @throws AssertionError if the actual VecPartOrUsageRelatedSpecification's refSpecificRole does not contain all given VecSpecificRole elements.
*/
public S hasOnlyRefSpecificRole(VecSpecificRole... refSpecificRole) {
// check that actual VecPartOrUsageRelatedSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSpecificRole varargs is not null.
if (refSpecificRole == null) failWithMessage("Expecting refSpecificRole 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.getRefSpecificRole(), refSpecificRole);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPartOrUsageRelatedSpecification's refSpecificRole contains only the given VecSpecificRole elements in Collection and nothing else in whatever order.
* @param refSpecificRole the given elements that should be contained in actual VecPartOrUsageRelatedSpecification's refSpecificRole.
* @return this assertion object.
* @throws AssertionError if the actual VecPartOrUsageRelatedSpecification's refSpecificRole does not contain all given VecSpecificRole elements.
*/
public S hasOnlyRefSpecificRole(java.util.Collection extends VecSpecificRole> refSpecificRole) {
// check that actual VecPartOrUsageRelatedSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSpecificRole collection is not null.
if (refSpecificRole == null) {
failWithMessage("Expecting refSpecificRole 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.getRefSpecificRole(), refSpecificRole.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPartOrUsageRelatedSpecification's refSpecificRole does not contain the given VecSpecificRole elements.
*
* @param refSpecificRole the given elements that should not be in actual VecPartOrUsageRelatedSpecification's refSpecificRole.
* @return this assertion object.
* @throws AssertionError if the actual VecPartOrUsageRelatedSpecification's refSpecificRole contains any given VecSpecificRole elements.
*/
public S doesNotHaveRefSpecificRole(VecSpecificRole... refSpecificRole) {
// check that actual VecPartOrUsageRelatedSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSpecificRole varargs is not null.
if (refSpecificRole == null) failWithMessage("Expecting refSpecificRole parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefSpecificRole(), refSpecificRole);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPartOrUsageRelatedSpecification's refSpecificRole does not contain the given VecSpecificRole elements in Collection.
*
* @param refSpecificRole the given elements that should not be in actual VecPartOrUsageRelatedSpecification's refSpecificRole.
* @return this assertion object.
* @throws AssertionError if the actual VecPartOrUsageRelatedSpecification's refSpecificRole contains any given VecSpecificRole elements.
*/
public S doesNotHaveRefSpecificRole(java.util.Collection extends VecSpecificRole> refSpecificRole) {
// check that actual VecPartOrUsageRelatedSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSpecificRole collection is not null.
if (refSpecificRole == null) {
failWithMessage("Expecting refSpecificRole 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.getRefSpecificRole(), refSpecificRole.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPartOrUsageRelatedSpecification has no refSpecificRole.
* @return this assertion object.
* @throws AssertionError if the actual VecPartOrUsageRelatedSpecification's refSpecificRole is not empty.
*/
public S hasNoRefSpecificRole() {
// check that actual VecPartOrUsageRelatedSpecification 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 refSpecificRole but had :\n <%s>";
// check
if (actual.getRefSpecificRole().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefSpecificRole());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecPartOrUsageRelatedSpecification's specialPartType is equal to the given one.
* @param specialPartType the given specialPartType to compare the actual VecPartOrUsageRelatedSpecification's specialPartType to.
* @return this assertion object.
* @throws AssertionError - if the actual VecPartOrUsageRelatedSpecification's specialPartType is not equal to the given one.
*/
public S hasSpecialPartType(String specialPartType) {
// check that actual VecPartOrUsageRelatedSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting specialPartType of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualSpecialPartType = actual.getSpecialPartType();
if (!Objects.areEqual(actualSpecialPartType, specialPartType)) {
failWithMessage(assertjErrorMessage, actual, specialPartType, actualSpecialPartType);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy