
com.foursoft.vecmodel.vec120.AbstractVecModuleFamilyAssert 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 VecModuleFamily} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecModuleFamilyAssert, A extends VecModuleFamily> extends AbstractVecExtendableElementAssert {
/**
* Creates a new {@link AbstractVecModuleFamilyAssert}
to make assertions on actual VecModuleFamily.
* @param actual the VecModuleFamily we want to make assertions on.
*/
protected AbstractVecModuleFamilyAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecModuleFamily's descriptions contains the given VecAbstractLocalizedString elements.
* @param descriptions the given elements that should be contained in actual VecModuleFamily's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecModuleFamily's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecModuleFamily we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString varargs is not null.
if (descriptions == null) failWithMessage("Expecting descriptions 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.getDescriptions(), descriptions);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecModuleFamily's descriptions contains the given VecAbstractLocalizedString elements in Collection.
* @param descriptions the given elements that should be contained in actual VecModuleFamily's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecModuleFamily's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecModuleFamily we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString collection is not null.
if (descriptions == null) {
failWithMessage("Expecting descriptions 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.getDescriptions(), descriptions.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecModuleFamily's descriptions contains only the given VecAbstractLocalizedString elements and nothing else in whatever order.
* @param descriptions the given elements that should be contained in actual VecModuleFamily's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecModuleFamily's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasOnlyDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecModuleFamily we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString varargs is not null.
if (descriptions == null) failWithMessage("Expecting descriptions 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.getDescriptions(), descriptions);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecModuleFamily's descriptions contains only the given VecAbstractLocalizedString elements in Collection and nothing else in whatever order.
* @param descriptions the given elements that should be contained in actual VecModuleFamily's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecModuleFamily's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasOnlyDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecModuleFamily we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString collection is not null.
if (descriptions == null) {
failWithMessage("Expecting descriptions 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.getDescriptions(), descriptions.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecModuleFamily's descriptions does not contain the given VecAbstractLocalizedString elements.
*
* @param descriptions the given elements that should not be in actual VecModuleFamily's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecModuleFamily's descriptions contains any given VecAbstractLocalizedString elements.
*/
public S doesNotHaveDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecModuleFamily we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString varargs is not null.
if (descriptions == null) failWithMessage("Expecting descriptions parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getDescriptions(), descriptions);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecModuleFamily's descriptions does not contain the given VecAbstractLocalizedString elements in Collection.
*
* @param descriptions the given elements that should not be in actual VecModuleFamily's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecModuleFamily's descriptions contains any given VecAbstractLocalizedString elements.
*/
public S doesNotHaveDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecModuleFamily we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString collection is not null.
if (descriptions == null) {
failWithMessage("Expecting descriptions 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.getDescriptions(), descriptions.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecModuleFamily has no descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecModuleFamily's descriptions is not empty.
*/
public S hasNoDescriptions() {
// check that actual VecModuleFamily 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 descriptions but had :\n <%s>";
// check
if (actual.getDescriptions().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getDescriptions());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecModuleFamily's identification is equal to the given one.
* @param identification the given identification to compare the actual VecModuleFamily's identification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecModuleFamily's identification is not equal to the given one.
*/
public S hasIdentification(String identification) {
// check that actual VecModuleFamily we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting identification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualIdentification = actual.getIdentification();
if (!Objects.areEqual(actualIdentification, identification)) {
failWithMessage(assertjErrorMessage, actual, identification, actualIdentification);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecModuleFamily's moduleInFamily contains the given VecPartWithSubComponentsRole elements.
* @param moduleInFamily the given elements that should be contained in actual VecModuleFamily's moduleInFamily.
* @return this assertion object.
* @throws AssertionError if the actual VecModuleFamily's moduleInFamily does not contain all given VecPartWithSubComponentsRole elements.
*/
public S hasModuleInFamily(VecPartWithSubComponentsRole... moduleInFamily) {
// check that actual VecModuleFamily we want to make assertions on is not null.
isNotNull();
// check that given VecPartWithSubComponentsRole varargs is not null.
if (moduleInFamily == null) failWithMessage("Expecting moduleInFamily 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.getModuleInFamily(), moduleInFamily);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecModuleFamily's moduleInFamily contains the given VecPartWithSubComponentsRole elements in Collection.
* @param moduleInFamily the given elements that should be contained in actual VecModuleFamily's moduleInFamily.
* @return this assertion object.
* @throws AssertionError if the actual VecModuleFamily's moduleInFamily does not contain all given VecPartWithSubComponentsRole elements.
*/
public S hasModuleInFamily(java.util.Collection extends VecPartWithSubComponentsRole> moduleInFamily) {
// check that actual VecModuleFamily we want to make assertions on is not null.
isNotNull();
// check that given VecPartWithSubComponentsRole collection is not null.
if (moduleInFamily == null) {
failWithMessage("Expecting moduleInFamily 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.getModuleInFamily(), moduleInFamily.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecModuleFamily's moduleInFamily contains only the given VecPartWithSubComponentsRole elements and nothing else in whatever order.
* @param moduleInFamily the given elements that should be contained in actual VecModuleFamily's moduleInFamily.
* @return this assertion object.
* @throws AssertionError if the actual VecModuleFamily's moduleInFamily does not contain all given VecPartWithSubComponentsRole elements.
*/
public S hasOnlyModuleInFamily(VecPartWithSubComponentsRole... moduleInFamily) {
// check that actual VecModuleFamily we want to make assertions on is not null.
isNotNull();
// check that given VecPartWithSubComponentsRole varargs is not null.
if (moduleInFamily == null) failWithMessage("Expecting moduleInFamily 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.getModuleInFamily(), moduleInFamily);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecModuleFamily's moduleInFamily contains only the given VecPartWithSubComponentsRole elements in Collection and nothing else in whatever order.
* @param moduleInFamily the given elements that should be contained in actual VecModuleFamily's moduleInFamily.
* @return this assertion object.
* @throws AssertionError if the actual VecModuleFamily's moduleInFamily does not contain all given VecPartWithSubComponentsRole elements.
*/
public S hasOnlyModuleInFamily(java.util.Collection extends VecPartWithSubComponentsRole> moduleInFamily) {
// check that actual VecModuleFamily we want to make assertions on is not null.
isNotNull();
// check that given VecPartWithSubComponentsRole collection is not null.
if (moduleInFamily == null) {
failWithMessage("Expecting moduleInFamily 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.getModuleInFamily(), moduleInFamily.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecModuleFamily's moduleInFamily does not contain the given VecPartWithSubComponentsRole elements.
*
* @param moduleInFamily the given elements that should not be in actual VecModuleFamily's moduleInFamily.
* @return this assertion object.
* @throws AssertionError if the actual VecModuleFamily's moduleInFamily contains any given VecPartWithSubComponentsRole elements.
*/
public S doesNotHaveModuleInFamily(VecPartWithSubComponentsRole... moduleInFamily) {
// check that actual VecModuleFamily we want to make assertions on is not null.
isNotNull();
// check that given VecPartWithSubComponentsRole varargs is not null.
if (moduleInFamily == null) failWithMessage("Expecting moduleInFamily parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getModuleInFamily(), moduleInFamily);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecModuleFamily's moduleInFamily does not contain the given VecPartWithSubComponentsRole elements in Collection.
*
* @param moduleInFamily the given elements that should not be in actual VecModuleFamily's moduleInFamily.
* @return this assertion object.
* @throws AssertionError if the actual VecModuleFamily's moduleInFamily contains any given VecPartWithSubComponentsRole elements.
*/
public S doesNotHaveModuleInFamily(java.util.Collection extends VecPartWithSubComponentsRole> moduleInFamily) {
// check that actual VecModuleFamily we want to make assertions on is not null.
isNotNull();
// check that given VecPartWithSubComponentsRole collection is not null.
if (moduleInFamily == null) {
failWithMessage("Expecting moduleInFamily 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.getModuleInFamily(), moduleInFamily.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecModuleFamily has no moduleInFamily.
* @return this assertion object.
* @throws AssertionError if the actual VecModuleFamily's moduleInFamily is not empty.
*/
public S hasNoModuleInFamily() {
// check that actual VecModuleFamily 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 moduleInFamily but had :\n <%s>";
// check
if (actual.getModuleInFamily().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getModuleInFamily());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecModuleFamily's parentModuleFamilySpecification is equal to the given one.
* @param parentModuleFamilySpecification the given parentModuleFamilySpecification to compare the actual VecModuleFamily's parentModuleFamilySpecification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecModuleFamily's parentModuleFamilySpecification is not equal to the given one.
*/
public S hasParentModuleFamilySpecification(VecModuleFamilySpecification parentModuleFamilySpecification) {
// check that actual VecModuleFamily we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentModuleFamilySpecification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecModuleFamilySpecification actualParentModuleFamilySpecification = actual.getParentModuleFamilySpecification();
if (!Objects.areEqual(actualParentModuleFamilySpecification, parentModuleFamilySpecification)) {
failWithMessage(assertjErrorMessage, actual, parentModuleFamilySpecification, actualParentModuleFamilySpecification);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy